summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppcodeformatter.cpp
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@digia.com>2014-05-08 15:40:42 -0400
committerNikolai Kosjar <nikolai.kosjar@digia.com>2014-05-15 14:46:56 +0200
commit7fbfdb737cd51e6b8c9e1b7d91f312eb5f3ea157 (patch)
tree291e9277991ac5f99218672933231b7e48a51d5d /src/plugins/cpptools/cppcodeformatter.cpp
parent4dd8a8fdd99e6c6d06514561a623b88058d45391 (diff)
downloadqt-creator-7fbfdb737cd51e6b8c9e1b7d91f312eb5f3ea157.tar.gz
CppEditor: Tests: Call QByteArray::remove() only with i >= 0
For example test_quickfix_InsertDefFromDecl_afterClass led to a QByteArray::remove(-1) call. According to the doc nothing happens, but it will become problematic later when we change to QString (with that, a character will be removed from the end). Change-Id: Ie89dd7834e44fbcfde63ea6ca3ab181dfe50e191 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'src/plugins/cpptools/cppcodeformatter.cpp')
0 files changed, 0 insertions, 0 deletions