forked from qt-creator/qt-creator
QmlProfiler: Remove a few uses of ActionManager::instance()
The used functions are static nowadays. Change-Id: I1c7ce9765fba111fd3104cf151a519fd89818081 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
@@ -831,15 +831,12 @@ void QmlProfilerTool::profilerDataModelStateChanged()
|
||||
QList <QAction *> QmlProfilerTool::profilerContextMenuActions()
|
||||
{
|
||||
QList <QAction *> commonActions;
|
||||
ActionManager *manager = ActionManager::instance();
|
||||
if (manager) {
|
||||
Command *command = manager->command(Constants::QmlProfilerLoadActionId);
|
||||
if (command)
|
||||
|
||||
if (Command *command = ActionManager::command(Constants::QmlProfilerLoadActionId))
|
||||
commonActions << command->action();
|
||||
command = manager->command(Constants::QmlProfilerSaveActionId);
|
||||
if (command)
|
||||
if (Command *command = ActionManager::command(Constants::QmlProfilerSaveActionId))
|
||||
commonActions << command->action();
|
||||
}
|
||||
|
||||
return commonActions;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user