summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppfindreferences.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2020-11-04 13:02:01 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2020-11-04 13:02:52 +0000
commita88266798f7c317ed28f6ace4fe297ab8061dddc (patch)
tree7bfa854132e128ccee06ce7ebe1bf8c04d075b49 /src/plugins/cpptools/cppfindreferences.cpp
parentcf6757406d6a0c012cdaadcd8706ae14a948b200 (diff)
downloadqt-creator-a88266798f7c317ed28f6ace4fe297ab8061dddc.tar.gz
CPlusPlus: Differentiate declarations with an initializer
... from those without one, and display the former like write accesses. Task-number: QTCREATORBUG-24894 Change-Id: I5e2d83b2a3ec4735054441c346687f97eeb039fb Reviewed-by: André Hartmann <aha_1980@gmx.de>
Diffstat (limited to 'src/plugins/cpptools/cppfindreferences.cpp')
-rw-r--r--src/plugins/cpptools/cppfindreferences.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cppfindreferences.cpp b/src/plugins/cpptools/cppfindreferences.cpp
index 00d8c096e1..18438934d0 100644
--- a/src/plugins/cpptools/cppfindreferences.cpp
+++ b/src/plugins/cpptools/cppfindreferences.cpp
@@ -555,6 +555,7 @@ static void displayResults(SearchResult *search, QFutureWatcher<CPlusPlus::Usage
switch (type) {
case CPlusPlus::Usage::Type::Read:
return SearchResultColor::Style::Alt1;
+ case CPlusPlus::Usage::Type::Initialization:
case CPlusPlus::Usage::Type::Write:
case CPlusPlus::Usage::Type::WritableRef:
return SearchResultColor::Style::Alt2;