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: Use auto to paper over the QStringRef vs QStringView
Halla Remptbb137db93f58
diff --git a/libs/ui/kis_painting_assistant.cc b/libs/ui/kis_painting_assistant.ccindex 774d58bd67..379c7dec45 100644--- a/libs/ui/kis_painting_assistant.cc+++ b/libs/ui/kis_painting_assistant.cc@@ -641,12 +641,12 @@ void KisPaintingAssistant::loadXml(KoStore* store, QMap<int, KisPaintingAssistancase QXmlStreamReader::StartElement:if (xml.name() == "assistant") {- QStringRef active = xml.attributes().value("active");+ auto active = xml.attributes().value("active");setSnappingActive( (active != "0") );// load custom shared assistant propertiesif ( xml.attributes().hasAttribute("useCustomColor")) {- QStringRef useCustomColor = xml.attributes().value("useCustomColor");+ auto useCustomColor = xml.attributes().value("useCustomColor");bool usingColor = false;if (useCustomColor.toString() == "1") {@@ -662,13 +662,13 @@ void KisPaintingAssistant::loadXml(KoStore* store, QMap<int, KisPaintingAssistan}if ( xml.attributes().hasAttribute("customColor")) {- QStringRef customColor = xml.attributes().value("customColor");+ auto customColor = xml.attributes().value("customColor");setAssistantCustomColor( KisDomUtils::qStringToQColor(customColor.toString()) );}if ( xml.attributes().hasAttribute("locked")) {- QStringRef locked = xml.attributes().value("locked");+ auto locked = xml.attributes().value("locked");setLocked(locked == "1");}