Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
54d60a77
Commit
54d60a77
authored
Sep 24, 2009
by
Roberto Raggi
Browse files
Use the canonical symbol when searching references.
parent
efed56c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/cpptools/cppfindreferences.cpp
View file @
54d60a77
...
...
@@ -259,8 +259,15 @@ void CppFindReferences::findAll(const Snapshot &snapshot, Symbol *symbol)
Core
::
ProgressManager
*
progressManager
=
Core
::
ICore
::
instance
()
->
progressManager
();
// find the canonical symbol.
Symbol
*
canonicalSymbol
=
symbol
;
for
(;
symbol
;
symbol
=
symbol
->
next
())
{
if
(
symbol
->
name
()
==
canonicalSymbol
->
name
())
canonicalSymbol
=
symbol
;
}
QFuture
<
Core
::
Utils
::
FileSearchResult
>
result
=
QtConcurrent
::
run
(
&
find_helper
,
snapshot
,
s
ymbol
);
QtConcurrent
::
run
(
&
find_helper
,
snapshot
,
canonicalS
ymbol
);
m_watcher
.
setFuture
(
result
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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