diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-05-05 09:47:16 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-05-05 16:36:44 +0200 |
commit | 32a84df5c0cc4bce26b32997478b714ad65e5b1c (patch) | |
tree | f44011a3c3f65f29ada0fa0047a28385b5ec68b6 /src/plugins/cpptools/cppmodelmanager.cpp | |
parent | 325bc6664f2a70318d3a2c3d14ea136477c0cc71 (diff) | |
download | qt-creator-32a84df5c0cc4bce26b32997478b714ad65e5b1c.tar.gz |
Deprecated the current LookupContext.
Diffstat (limited to 'src/plugins/cpptools/cppmodelmanager.cpp')
-rw-r--r-- | src/plugins/cpptools/cppmodelmanager.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/cpptools/cppmodelmanager.cpp b/src/plugins/cpptools/cppmodelmanager.cpp index 87ad8c3d21..e2119a5cb7 100644 --- a/src/plugins/cpptools/cppmodelmanager.cpp +++ b/src/plugins/cpptools/cppmodelmanager.cpp @@ -77,7 +77,7 @@ #include <Parser.h> #include <Control.h> -#include <cplusplus/LookupContext.h> +#include <cplusplus/DeprecatedLookupContext.h> #include <QtCore/QCoreApplication> #include <QtCore/QDebug> @@ -282,12 +282,12 @@ public: _workingCopy(workingCopy) { } - LookupContext lookupContext(unsigned line, unsigned column) const + DeprecatedLookupContext lookupContext(unsigned line, unsigned column) const { return lookupContext(_doc->findSymbolAt(line, column)); } - LookupContext lookupContext(Symbol *symbol) const + DeprecatedLookupContext lookupContext(Symbol *symbol) const { - LookupContext context(symbol, Document::create(QLatin1String("<none>")), _doc, _snapshot); + DeprecatedLookupContext context(symbol, Document::create(QLatin1String("<none>")), _doc, _snapshot); return context; } @@ -825,7 +825,7 @@ QList<int> CppModelManager::references(CPlusPlus::Symbol *symbol, const CPlusPlus::Snapshot &snapshot) { NamespaceBindingPtr glo = bind(doc, snapshot); - return m_findReferences->references(LookupContext::canonicalSymbol(symbol, glo.data()), doc, snapshot); + return m_findReferences->references(DeprecatedLookupContext::canonicalSymbol(symbol, glo.data()), doc, snapshot); } void CppModelManager::findUsages(CPlusPlus::Document::Ptr symbolDocument, CPlusPlus::Symbol *symbol) |