forked from qt-creator/qt-creator
Utils: Purge asConst
Replace by qAsConst. Change-Id: I3301366f73c066c86f08df7188d70dc3b613c55c Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
11336fb604
commit
7d3a79c696
@@ -58,7 +58,6 @@
|
||||
#include <coreplugin/vcsmanager.h>
|
||||
|
||||
#include <coreplugin/messagebox.h>
|
||||
#include <utils/asconst.h>
|
||||
#include <utils/parameteraction.h>
|
||||
#include <utils/pathchooser.h>
|
||||
#include <utils/qtcassert.h>
|
||||
@@ -1360,15 +1359,15 @@ void GitPlugin::updateActions(VcsBasePlugin::ActionState as)
|
||||
// Note: This menu is visible if there is no repository. Only
|
||||
// 'Create Repository'/'Show' actions should be available.
|
||||
const QString fileName = Utils::quoteAmpersands(state.currentFileName());
|
||||
for (ParameterAction *fileAction : Utils::asConst(m_fileActions))
|
||||
for (ParameterAction *fileAction : qAsConst(m_fileActions))
|
||||
fileAction->setParameter(fileName);
|
||||
// If the current file looks like a patch, offer to apply
|
||||
m_applyCurrentFilePatchAction->setParameter(state.currentPatchFileDisplayName());
|
||||
const QString projectName = state.currentProjectName();
|
||||
for (ParameterAction *projectAction : Utils::asConst(m_projectActions))
|
||||
for (ParameterAction *projectAction : qAsConst(m_projectActions))
|
||||
projectAction->setParameter(projectName);
|
||||
|
||||
for (QAction *repositoryAction : Utils::asConst(m_repositoryActions))
|
||||
for (QAction *repositoryAction : qAsConst(m_repositoryActions))
|
||||
repositoryAction->setEnabled(repositoryEnabled);
|
||||
|
||||
m_submoduleUpdateAction->setVisible(repositoryEnabled
|
||||
|
Reference in New Issue
Block a user