Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
a8c5d1f8
Commit
a8c5d1f8
authored
Jul 08, 2010
by
Christian Kamm
Browse files
C++ indenter: Be more careful when comparing states.
Task-number: QTCREATORBUG-1818
parent
7ae3fd5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/cpptools/cppcodeformatter.cpp
View file @
a8c5d1f8
...
...
@@ -427,7 +427,8 @@ void CodeFormatter::updateStateUntil(const QTextBlock &endBlock)
break
;
if
(
blockData
.
m_blockRevision
!=
it
.
revision
())
break
;
if
(
previousState
!=
blockData
.
m_beginState
)
if
(
previousState
.
isEmpty
()
||
blockData
.
m_beginState
.
isEmpty
()
||
previousState
!=
blockData
.
m_beginState
)
break
;
if
(
loadLexerState
(
it
)
==
-
1
)
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment