forked from qt-creator/qt-creator
CMake: Slim down CMakeStep interface
Change-Id: Ia2cce411647e434a9edd7ef2b66a187bad6d8c12 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -161,11 +161,6 @@ CMakeBuildStep::CMakeBuildStep(BuildStepList *bsl, Utils::Id id) :
|
||||
this, &CMakeBuildStep::handleBuildTargetsChanges);
|
||||
}
|
||||
|
||||
CMakeBuildConfiguration *CMakeBuildStep::cmakeBuildConfiguration() const
|
||||
{
|
||||
return static_cast<CMakeBuildConfiguration *>(buildConfiguration());
|
||||
}
|
||||
|
||||
void CMakeBuildStep::handleBuildTargetsChanges(bool success)
|
||||
{
|
||||
if (!success)
|
||||
@@ -201,7 +196,7 @@ bool CMakeBuildStep::fromMap(const QVariantMap &map)
|
||||
bool CMakeBuildStep::init()
|
||||
{
|
||||
bool canInit = true;
|
||||
CMakeBuildConfiguration *bc = cmakeBuildConfiguration();
|
||||
BuildConfiguration *bc = buildConfiguration();
|
||||
QTC_ASSERT(bc, return false);
|
||||
if (!bc->isEnabled()) {
|
||||
emit addTask(BuildSystemTask(Task::Error,
|
||||
|
||||
Reference in New Issue
Block a user