forked from qt-creator/qt-creator
CPlusPlus: Remove Rreprocessor::run overload for QStrings
The preprocessor operates on QByteArray, making it less convenient to use strings helps preventing accidental conversion roundtrips. Change-Id: Ifb2068a8fed137c52b05f2979b99cbce3462151e Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -1841,7 +1841,7 @@ void tst_Preprocessor::include_guard()
|
||||
MockClient client(&env, &output);
|
||||
Preprocessor preprocess(&client, &env);
|
||||
preprocess.setKeepComments(true);
|
||||
/*QByteArray prep =*/ preprocess.run(QLatin1String("<test-case>"), input);
|
||||
/*QByteArray prep =*/ preprocess.run(QLatin1String("<test-case>"), input.toUtf8());
|
||||
QCOMPARE(QString::fromUtf8(client.includeGuard()), includeGuard);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user