Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Christoph Roick
kdevelop
Commits
225d73e8
Commit
225d73e8
authored
Dec 04, 2020
by
Milian Wolff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only index the context once
parent
04946b00
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
kdevplatform/language/highlighting/codehighlighting.cpp
kdevplatform/language/highlighting/codehighlighting.cpp
+3
-2
No files found.
kdevplatform/language/highlighting/codehighlighting.cpp
View file @
225d73e8
...
...
@@ -312,8 +312,9 @@ void CodeHighlightingInstance::highlightDUChain(DUContext* context, QHash<Declar
}
if
(
context
->
type
()
==
DUContext
::
Other
||
context
->
type
()
==
DUContext
::
Function
)
{
m_functionColorsForDeclarations
[
IndexedDUContext
(
context
)]
=
colorsForDeclarations
;
m_functionDeclarationsForColors
[
IndexedDUContext
(
context
)]
=
declarationsForColors
;
const
auto
indexed
=
IndexedDUContext
(
context
);
m_functionColorsForDeclarations
[
indexed
]
=
colorsForDeclarations
;
m_functionDeclarationsForColors
[
indexed
]
=
declarationsForColors
;
}
const
QVector
<
DUContext
*>
children
=
context
->
childContexts
();
...
...
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