Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
0d35f2f7
Commit
0d35f2f7
authored
Aug 10, 2010
by
Roberto Raggi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore empty chunks.
parent
430c78f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/plugins/cppeditor/cppeditor.cpp
src/plugins/cppeditor/cppeditor.cpp
+3
-1
No files found.
src/plugins/cppeditor/cppeditor.cpp
View file @
0d35f2f7
...
...
@@ -983,7 +983,9 @@ void CPPEditor::highlightSymbolUsages(int from, int to)
return
;
QMap
<
int
,
QVector
<
SemanticInfo
::
Use
>
>
chunks
=
CheckSymbols
::
chunks
(
m_highlighter
,
from
,
to
);
Q_ASSERT
(
!
chunks
.
isEmpty
());
if
(
chunks
.
isEmpty
())
return
;
QTextBlock
b
=
doc
->
findBlockByNumber
(
m_nextHighlightBlockNumber
);
QMapIterator
<
int
,
QVector
<
SemanticInfo
::
Use
>
>
it
(
chunks
);
...
...
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