summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppfindreferences.cpp
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2015-10-09 17:42:56 +0200
committerNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2015-10-12 14:04:31 +0000
commit6ced48ea89b20e13aa6dbb12f796c1a06b9f1b48 (patch)
tree403594d0a67016a1861d775f141f059e6d0d8bab /src/plugins/cpptools/cppfindreferences.cpp
parentb4993e142dd8797642201c7ff132586796efcdee (diff)
downloadqt-creator-6ced48ea89b20e13aa6dbb12f796c1a06b9f1b48.tar.gz
CppEditor: Move static symbol finder instance to CppTools
...to it can be reused by other clients more easily. Also, in a follow-up change it will have a project part dependency that can be cleared inside the CppModelManager more easily. Change-Id: Ic9f2ce5212a94fd05ab0571e9ad99d0a25f5bc5c Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
Diffstat (limited to 'src/plugins/cpptools/cppfindreferences.cpp')
-rw-r--r--src/plugins/cpptools/cppfindreferences.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/cpptools/cppfindreferences.cpp b/src/plugins/cpptools/cppfindreferences.cpp
index 514dd57781..9055b8195a 100644
--- a/src/plugins/cpptools/cppfindreferences.cpp
+++ b/src/plugins/cpptools/cppfindreferences.cpp
@@ -405,10 +405,10 @@ void CppFindReferences::searchAgain()
}
namespace {
-class SymbolFinder : public SymbolVisitor
+class UidSymbolFinder : public SymbolVisitor
{
public:
- SymbolFinder(const QList<QByteArray> &uid) : m_uid(uid), m_index(0), m_result(0) { }
+ UidSymbolFinder(const QList<QByteArray> &uid) : m_uid(uid), m_index(0), m_result(0) { }
Symbol *result() const { return m_result; }
bool preVisit(Symbol *symbol)
@@ -460,7 +460,7 @@ Symbol *CppFindReferences::findSymbol(const CppFindReferencesParameters &paramet
doc->check();
// find matching symbol in new document and return the new parameters
- SymbolFinder finder(parameters.symbolId);
+ UidSymbolFinder finder(parameters.symbolId);
finder.accept(doc->globalNamespace());
if (finder.result()) {
*context = LookupContext(doc, snapshot);