Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Qt6: get strings instead of deprecated stringrefs

Halla Rempt22108b38daa8
diff --git a/libs/flake/tests/TestSvgText.cpp b/libs/flake/tests/TestSvgText.cpp
index a213eb72b0..cf653992fc 100644
--- a/libs/flake/tests/TestSvgText.cpp
+++ b/libs/flake/tests/TestSvgText.cpp
@@ -1058,8 +1058,8 @@ void TestSvgText::testTrailingWhitespace()
for (auto itL = linkChunk.constBegin(); itL != linkChunk.constEnd(); ++itL) {
for (auto itA = chunkA.constBegin(); itA != chunkA.constEnd(); ++itA) {
for (auto itB = chunkB.constBegin(); itB != chunkB.constEnd(); ++itB) {
- if (itA->rightRef(1) != " " &&
- itB->leftRef(1) != " " &&
+ if (itA->right(1) != " " &&
+ itB->left(1) != " " &&
*itL != " " &&
*itL != linkChunk.last()) continue;