summaryrefslogtreecommitdiff
path: root/src/plugins/remotelinux/remotelinuxrunconfigurationfactory.h
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2014-07-01 11:08:26 +0200
committerhjk <hjk121@nokiamail.com>2014-07-01 11:52:08 +0200
commit93304df0381cbeabf4c8435aec0ad55fbc7f8fe7 (patch)
tree7cbe348b1e3f88041b7e159aa335031e2c41bfc8 /src/plugins/remotelinux/remotelinuxrunconfigurationfactory.h
parent139449239c7cd63ab933d13e20b37cd717a45fe7 (diff)
downloadqt-creator-93304df0381cbeabf4c8435aec0ad55fbc7f8fe7.tar.gz
Always pass Core::Id by value.
Currently we pass in some places by value, elsewhere by const ref and for some weird reason also by const value in a lot of places. The latter is particularly annoying, as it is also used in interfaces and therefore forces all implementors to do the same, since leaving the "const" off is causing compiler warnings with MSVC. Change-Id: I65b87dc3cce0986b8a55ff6119cb752361027803 Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'src/plugins/remotelinux/remotelinuxrunconfigurationfactory.h')
-rw-r--r--src/plugins/remotelinux/remotelinuxrunconfigurationfactory.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/remotelinux/remotelinuxrunconfigurationfactory.h b/src/plugins/remotelinux/remotelinuxrunconfigurationfactory.h
index 16cfa90d2f..cd1d97d5eb 100644
--- a/src/plugins/remotelinux/remotelinuxrunconfigurationfactory.h
+++ b/src/plugins/remotelinux/remotelinuxrunconfigurationfactory.h
@@ -42,10 +42,10 @@ public:
explicit RemoteLinuxRunConfigurationFactory(QObject *parent = 0);
~RemoteLinuxRunConfigurationFactory();
- QString displayNameForId(const Core::Id id) const;
+ QString displayNameForId(Core::Id id) const;
QList<Core::Id> availableCreationIds(ProjectExplorer::Target *parent, CreationMode mode) const;
- bool canCreate(ProjectExplorer::Target *parent, const Core::Id id) const;
+ bool canCreate(ProjectExplorer::Target *parent, Core::Id id) const;
bool canRestore(ProjectExplorer::Target *parent, const QVariantMap &map) const;
@@ -56,7 +56,7 @@ public:
private:
bool canHandle(const ProjectExplorer::Target *target) const;
- ProjectExplorer::RunConfiguration *doCreate(ProjectExplorer::Target *parent, const Core::Id id);
+ ProjectExplorer::RunConfiguration *doCreate(ProjectExplorer::Target *parent, Core::Id id);
ProjectExplorer::RunConfiguration *doRestore(ProjectExplorer::Target *parent,
const QVariantMap &map);
};