forked from qt-creator/qt-creator
CMake: Make parseBuildPresets static
Change-Id: I78ed82a39ea09d907fa111353c33a45b616348fb Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -365,9 +365,9 @@ bool parseConfigurePresets(const QJsonValue &jsonValue,
|
||||
return true;
|
||||
}
|
||||
|
||||
bool parseBuildPresets(const QJsonValue &jsonValue,
|
||||
static bool parseBuildPresets(const QJsonValue &jsonValue,
|
||||
QList<PresetsDetails::BuildPreset> &buildPresets,
|
||||
const Utils::FilePath &fileDir)
|
||||
const FilePath &fileDir)
|
||||
{
|
||||
// The whole section is optional
|
||||
if (jsonValue.isUndefined())
|
||||
@@ -470,7 +470,7 @@ const PresetsData &PresetsParser::presetsData() const
|
||||
return m_presetsData;
|
||||
}
|
||||
|
||||
bool PresetsParser::parse(const Utils::FilePath &jsonFile, QString &errorMessage, int &errorLine)
|
||||
bool PresetsParser::parse(const FilePath &jsonFile, QString &errorMessage, int &errorLine)
|
||||
{
|
||||
const Utils::expected_str<QByteArray> jsonContents = jsonFile.fileContents();
|
||||
if (!jsonContents) {
|
||||
|
Reference in New Issue
Block a user