forked from qt-creator/qt-creator
Fix warning: "Don't call QList::last() on temporary"
[-Wclazy-detaching-temporary] Change-Id: I5e06e44fc45c80ea1dca518611d4f0c28a738061 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -350,7 +350,7 @@ void CppFindReferences::findUsages(CPlusPlus::Symbol *symbol,
|
||||
|
||||
if (symbol->isClass() || symbol->isForwardClassDeclaration()) {
|
||||
CPlusPlus::Overview overview;
|
||||
parameters.prettySymbolName = overview.prettyName(context.path(symbol).last());
|
||||
parameters.prettySymbolName = overview.prettyName(context.path(symbol).constLast());
|
||||
}
|
||||
|
||||
search->setUserData(qVariantFromValue(parameters));
|
||||
|
||||
Reference in New Issue
Block a user