diff options
Diffstat (limited to 'src/plugins/projectexplorer/applicationrunconfiguration.cpp')
-rw-r--r-- | src/plugins/projectexplorer/applicationrunconfiguration.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/projectexplorer/applicationrunconfiguration.cpp b/src/plugins/projectexplorer/applicationrunconfiguration.cpp index c112595509..8325b7327c 100644 --- a/src/plugins/projectexplorer/applicationrunconfiguration.cpp +++ b/src/plugins/projectexplorer/applicationrunconfiguration.cpp @@ -81,7 +81,7 @@ ApplicationRunConfigurationRunner::~ApplicationRunConfigurationRunner() bool ApplicationRunConfigurationRunner::canRun(QSharedPointer<RunConfiguration> runConfiguration, const QString &mode) { return (mode == ProjectExplorer::Constants::RUNMODE) - && (!runConfiguration.dynamicCast<ApplicationRunConfiguration>().isNull()); + && (!runConfiguration.objectCast<ApplicationRunConfiguration>().isNull()); } QString ApplicationRunConfigurationRunner::displayName() const @@ -91,7 +91,7 @@ QString ApplicationRunConfigurationRunner::displayName() const RunControl *ApplicationRunConfigurationRunner::run(QSharedPointer<RunConfiguration> runConfiguration, const QString &mode) { - QSharedPointer<ApplicationRunConfiguration> rc = runConfiguration.dynamicCast<ApplicationRunConfiguration>(); + QSharedPointer<ApplicationRunConfiguration> rc = runConfiguration.objectCast<ApplicationRunConfiguration>(); Q_ASSERT(!rc.isNull()); Q_ASSERT(mode == ProjectExplorer::Constants::RUNMODE); @@ -126,7 +126,7 @@ ApplicationRunControl::~ApplicationRunControl() void ApplicationRunControl::start() { - QSharedPointer<ApplicationRunConfiguration> rc = runConfiguration().dynamicCast<ApplicationRunConfiguration>(); + QSharedPointer<ApplicationRunConfiguration> rc = runConfiguration().objectCast<ApplicationRunConfiguration>(); Q_ASSERT(!rc.isNull()); m_applicationLauncher.setEnvironment(rc->environment().toStringList()); |