forked from qt-creator/qt-creator
Move Project::makeUnique to Utils
This is more generic than projects Change-Id: Ifdbc57ff48f9fd4a40e6149ba636e0a55cbac502 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -26,7 +26,6 @@
|
||||
#include "buildsettingspropertiespage.h"
|
||||
#include "buildinfo.h"
|
||||
#include "buildstepspage.h"
|
||||
#include "project.h"
|
||||
#include "target.h"
|
||||
#include "buildconfiguration.h"
|
||||
#include "projectconfigurationmodel.h"
|
||||
@@ -36,6 +35,7 @@
|
||||
#include <coreplugin/icore.h>
|
||||
#include <projectexplorer/projectexplorer.h>
|
||||
#include <projectexplorer/buildmanager.h>
|
||||
#include <utils/stringutils.h>
|
||||
|
||||
#include <QMargins>
|
||||
#include <QCoreApplication>
|
||||
@@ -269,7 +269,7 @@ QString BuildSettingsWidget::uniqueName(const QString & name)
|
||||
continue;
|
||||
bcNames.append(bc->displayName());
|
||||
}
|
||||
result = Project::makeUnique(result, bcNames);
|
||||
result = Utils::makeUniquelyNumbered(result, bcNames);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user