diff options
| author | Orgad Shaneh <[email protected]> | 2018-04-08 23:40:00 +0300 |
|---|---|---|
| committer | Orgad Shaneh <[email protected]> | 2018-04-09 09:04:00 +0000 |
| commit | 7d3a79c696a966877b5bde32730b70310d34afdc (patch) | |
| tree | d0f07bb5acabbafc58ba9bb5890a9802fb0f3769 /src/plugins/git/gitplugin.cpp | |
| parent | 11336fb60458c62f41077318d119910cf1b193a4 (diff) | |
Utils: Purge asConst
Replace by qAsConst.
Change-Id: I3301366f73c066c86f08df7188d70dc3b613c55c
Reviewed-by: Christian Stenger <[email protected]>
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/git/gitplugin.cpp')
| -rw-r--r-- | src/plugins/git/gitplugin.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/git/gitplugin.cpp b/src/plugins/git/gitplugin.cpp index 044b3789768..391d27961f9 100644 --- a/src/plugins/git/gitplugin.cpp +++ b/src/plugins/git/gitplugin.cpp @@ -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 |
