forked from qt-creator/qt-creator
Don't access static functions/fields via instance
Courtesy of readability-static-accessed-through-instance Change-Id: I71f54244f1e091315dac2943d9e1bfad6efa56a9 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -919,7 +919,7 @@ void FindReferences::findUsages(const QString &fileName, quint32 offset)
|
||||
{
|
||||
ModelManagerInterface *modelManager = ModelManagerInterface::instance();
|
||||
|
||||
QFuture<Usage> result = Utils::runAsync(&find_helper, modelManager->workingCopy(),
|
||||
QFuture<Usage> result = Utils::runAsync(&find_helper, ModelManagerInterface::workingCopy(),
|
||||
modelManager->snapshot(), fileName, offset, QString());
|
||||
m_watcher.setFuture(result);
|
||||
}
|
||||
@@ -934,7 +934,7 @@ void FindReferences::renameUsages(const QString &fileName, quint32 offset,
|
||||
if (newName.isNull())
|
||||
newName = QLatin1String("");
|
||||
|
||||
QFuture<Usage> result = Utils::runAsync(&find_helper, modelManager->workingCopy(),
|
||||
QFuture<Usage> result = Utils::runAsync(&find_helper, ModelManagerInterface::workingCopy(),
|
||||
modelManager->snapshot(), fileName, offset, newName);
|
||||
m_watcher.setFuture(result);
|
||||
}
|
||||
|
||||
@@ -658,7 +658,7 @@ QModelIndex QmlOutlineModel::enterFieldMemberExpression(AST::FieldMemberExpressi
|
||||
objectData.insert(AnnotationRole, QString()); // clear possible former annotation
|
||||
|
||||
QmlOutlineItem *item = enterNode(objectData, expression, nullptr,
|
||||
m_icons->functionDeclarationIcon());
|
||||
Icons::functionDeclarationIcon());
|
||||
|
||||
return item->index();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user