aboutsummaryrefslogtreecommitdiff
path: root/autotests/kconfigtest.cpp
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2021-02-06 22:49:41 +0200
committerAhmad Samir <a.samirh78@gmail.com>2021-02-06 22:49:41 +0200
commit65e5f9f01078ec993648da3a132f60c7f07ff27d (patch)
tree345aa4d698e254d80b03511c64fd60b8c4f66377 /autotests/kconfigtest.cpp
parentdc878289c01011c59615746655b4e78d4bc90b91 (diff)
downloadkconfig-65e5f9f01078ec993648da3a132f60c7f07ff27d.tar.gz
kconfig-65e5f9f01078ec993648da3a132f60c7f07ff27d.tar.bz2
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
Diffstat (limited to 'autotests/kconfigtest.cpp')
-rw-r--r--autotests/kconfigtest.cpp2
1 files changed, 1 insertions, 1 deletions
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"));