forked from qt-creator/qt-creator
Remove BuildStepList::isNull
It's not really needed. The Null-ness is equivalent to a failed fromMap() which we execute on all usage paths anyways. Change-Id: I72bb7fb55b7f26680fa68da8eef751ca96380ecd Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -173,8 +173,8 @@ bool BuildConfiguration::fromMap(const QVariantMap &map)
|
||||
qWarning() << "No data for build step list" << i << "found!";
|
||||
continue;
|
||||
}
|
||||
auto list = new BuildStepList(this, data);
|
||||
if (list->isNull()) {
|
||||
auto list = new BuildStepList(this, Core::Id());
|
||||
if (!list->fromMap(data)) {
|
||||
qWarning() << "Failed to restore build step list" << i;
|
||||
delete list;
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user