Commit eb93ad35 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

fix arguments in parsedProBlock() calls



Task-number: QTCREATORBUG-8934
Change-Id: Ifcf0de22d8beed692fccc5fca162ec9fa5d97a7f
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent 9734fc4f
......@@ -450,7 +450,7 @@ void tst_ProFileWriter::adds()
QString var = QLatin1String("SOURCES");
QMakeParser parser(0, &parseHandler);
ProFile *proFile = parser.parsedProBlock(QLatin1String(BASE_DIR "/test.pro"), input);
ProFile *proFile = parser.parsedProBlock(input, QLatin1String(BASE_DIR "/test.pro"), 1);
QVERIFY(proFile);
PW::putVarValues(proFile, &lines, values, var, PW::PutFlags(flags), scope);
proFile->deref();
......@@ -620,7 +620,7 @@ void tst_ProFileWriter::removes()
QStringList vars; vars << QLatin1String("SOURCES");
QMakeParser parser(0, &parseHandler);
ProFile *proFile = parser.parsedProBlock(QLatin1String(BASE_DIR "/test.pro"), input);
ProFile *proFile = parser.parsedProBlock(input, QLatin1String(BASE_DIR "/test.pro"), 1);
QVERIFY(proFile);
Qt4ProjectManager::Internal::ProWriter::removeVarValues(proFile, &lines, values, vars);
proFile->deref();
......@@ -648,7 +648,7 @@ void tst_ProFileWriter::multiVar()
QStringList vars; vars << QLatin1String("SOURCES") << QLatin1String("HEADERS");
QMakeParser parser(0, &parseHandler);
ProFile *proFile = parser.parsedProBlock(QLatin1String(BASE_DIR "/test.pro"), input);
ProFile *proFile = parser.parsedProBlock(input, QLatin1String(BASE_DIR "/test.pro"), 1);
QVERIFY(proFile);
Qt4ProjectManager::Internal::ProWriter::removeFiles(proFile, &lines, baseDir, files, vars);
proFile->deref();
......@@ -668,7 +668,7 @@ void tst_ProFileWriter::addFiles()
);
QMakeParser parser(0, &parseHandler);
ProFile *proFile = parser.parsedProBlock(QLatin1String(BASE_DIR "/test.pro"), input);
ProFile *proFile = parser.parsedProBlock(input, QLatin1String(BASE_DIR "/test.pro"), 1);
QVERIFY(proFile);
Qt4ProjectManager::Internal::ProWriter::addFiles(proFile, &lines, QDir(BASE_DIR),
QStringList() << QString::fromLatin1(BASE_DIR "/sub/bar.cpp"),
......@@ -689,7 +689,7 @@ void tst_ProFileWriter::removeFiles()
);
QMakeParser parser(0, &parseHandler);
ProFile *proFile = parser.parsedProBlock(QLatin1String(BASE_DIR "/test.pro"), input);
ProFile *proFile = parser.parsedProBlock(input, QLatin1String(BASE_DIR "/test.pro"), 1);
QVERIFY(proFile);
Qt4ProjectManager::Internal::ProWriter::removeFiles(proFile, &lines, QDir(BASE_DIR),
QStringList() << QString::fromLatin1(BASE_DIR "/sub/bar.cpp"),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment