forked from qt-creator/qt-creator
Initial work on the new CPlusPlus::Snapshot.
Encapsulate the details.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user