From 65e5f9f01078ec993648da3a132f60c7f07ff27d Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Sat, 6 Feb 2021 22:49:41 +0200 Subject: Fix windows build on the CI I didn't consider the '#ifdef Q_OS_WIN' code paths (since that compiles just fine locally). GIT_SILENT --- autotests/kconfigtest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'autotests/kconfigtest.cpp') diff --git a/autotests/kconfigtest.cpp b/autotests/kconfigtest.cpp index 0619f97f..2417d56e 100644 --- a/autotests/kconfigtest.cpp +++ b/autotests/kconfigtest.cpp @@ -1786,7 +1786,7 @@ void KConfigTest::testQStringUtf8() QVERIFY(readFile.open(QFile::ReadOnly)); QByteArray fileBytes = readFile.readAll(); #ifdef Q_OS_WIN - fileBytes.replace("\r\n", "\n"); + fileBytes.replace(QLatin1String{"\r\n"}, QLatin1String{"\n"}); #endif QCOMPARE(fileBytes, QByteArrayLiteral("[General]\nkey=") + serialized + QByteArrayLiteral("\n")); -- cgit v1.2.1