aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2017-11-13 14:51:26 +0100
committerhjk <hjk@qt.io>2017-11-14 10:59:18 +0000
commit02157d77bc9f3817e69165a29b754d49e1e08542 (patch)
tree428f40d2c0380bf925c2f2ec5dbab8c8787fd01f /src/plugins/projectexplorer/customexecutablerunconfiguration.cpp
parent9436a3824ead60700f19e441db687b2fbea0eebd (diff)
CustomExecutable: standardize RunConfiguration::initialize() signature
Most other signatures look like {...}RunConfiguration::initialize(Core::Id), make this here the same, even if the Id is unused (or, rather always the same) so we can use a virtual function in the base RunConfiguration at some time. Change-Id: I5d3d4a7bf856bb0cc31f8e26bc0e5a80fd1a4066 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/customexecutablerunconfiguration.cpp')
-rw-r--r--src/plugins/projectexplorer/customexecutablerunconfiguration.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp b/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp
index b59278d117..1dde37611a 100644
--- a/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp
+++ b/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp
@@ -90,7 +90,7 @@ CustomExecutableRunConfiguration::CustomExecutableRunConfiguration(Target *targe
addExtraAspect(new TerminalAspect(this, "ProjectExplorer.CustomExecutableRunConfiguration.UseTerminal"));
}
-void CustomExecutableRunConfiguration::initialize()
+void CustomExecutableRunConfiguration::initialize(Core::Id)
{
RunConfiguration::initialize(CUSTOM_EXECUTABLE_ID);
if (target()->activeBuildConfiguration())
@@ -329,8 +329,7 @@ bool CustomExecutableRunConfigurationFactory::canCreate(Target *parent, Core::Id
RunConfiguration *
CustomExecutableRunConfigurationFactory::doCreate(Target *parent, Core::Id id)
{
- Q_UNUSED(id);
- return createHelper<CustomExecutableRunConfiguration>(parent);
+ return createHelper<CustomExecutableRunConfiguration>(parent, id);
}
bool CustomExecutableRunConfigurationFactory::canRestore(Target *parent,
@@ -345,8 +344,7 @@ bool CustomExecutableRunConfigurationFactory::canRestore(Target *parent,
RunConfiguration *
CustomExecutableRunConfigurationFactory::doRestore(Target *parent, const QVariantMap &map)
{
- Q_UNUSED(map);
- return createHelper<CustomExecutableRunConfiguration>(parent);
+ return createHelper<CustomExecutableRunConfiguration>(parent, idFromMap(map));
}
bool CustomExecutableRunConfigurationFactory::canClone(Target *parent,