diff options
| author | Roberto Raggi <roberto.raggi@nokia.com> | 2009-12-07 10:54:27 +0100 |
|---|---|---|
| committer | Roberto Raggi <roberto.raggi@nokia.com> | 2009-12-07 10:54:27 +0100 |
| commit | 14376c3c32d2eba270752ada6f6e6c5825e6dfe1 (patch) | |
| tree | 1a55aab4f52866faa79e2e2fff46e716a3681299 /src/plugins/cpptools/cppfindreferences.cpp | |
| parent | 5628f945fb4d9d7f6f17abe6ffe4910e9cc9f8db (diff) | |
| download | qt-creator-14376c3c32d2eba270752ada6f6e6c5825e6dfe1.tar.gz | |
Initial work on the new CPlusPlus::Snapshot.
Encapsulate the details.
Diffstat (limited to 'src/plugins/cpptools/cppfindreferences.cpp')
| -rw-r--r-- | src/plugins/cpptools/cppfindreferences.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cpptools/cppfindreferences.cpp b/src/plugins/cpptools/cppfindreferences.cpp index c6cf8642ef..81d7caadf9 100644 --- a/src/plugins/cpptools/cppfindreferences.cpp +++ b/src/plugins/cpptools/cppfindreferences.cpp @@ -110,7 +110,7 @@ public: QList<Usage> usages; const Identifier *symbolId = symbol->identifier(); - if (Document::Ptr previousDoc = snapshot.value(fileName)) { + if (Document::Ptr previousDoc = snapshot.document(fileName)) { Control *control = previousDoc->control(); if (! control->findIdentifier(symbolId->chars(), symbolId->size())) return usages; // skip this document, it's not using symbolId. |
