[pim/trojita] src/Gui: Return QString() instead of QStringLiteral("")

Espen Sandøy Hustad <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 71e6393b28d8bbe6b328a88808eb97d3aa6264b9 by Espen Sandøy Hustad.
Committed on 22/07/2026 at 16:33.
Pushed by ehustad into branch 'master'.

Return QString() instead of QStringLiteral("")

Fix Clazy warning: Use QLatin1String("") or QString() instead
of an empty QStringLiteral [-Wclazy-empty-qstringliteral].

M  +1    -1    src/Gui/Window.cpp

https://invent.kde.org/pim/trojita/-/commit/71e6393b28d8bbe6b328a88808eb97d3aa6264b9

diff --git a/src/Gui/Window.cpp b/src/Gui/Window.cpp
index 7e4932921..de4e67d56 100644
--- a/src/Gui/Window.cpp
+++ b/src/Gui/Window.cpp
@@ -2842,7 +2842,7 @@ QString MainWindow::layoutToString(const LayoutMode layout) const
     }
 
     Q_ASSERT(false);
-    return QStringLiteral("");
+    return QString();
 }
 
 void MainWindow::convertSizesAndStateSettings()
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.