[pim/trojita] src/Gui: Convert global static QString to QLatin1StringView

Espen Sandøy Hustad <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit e4b6b0fd98e7a7a71cb9557eab2a133fff5b346a by Espen Sandøy Hustad.
Committed on 09/08/2026 at 10:57.
Pushed by ehustad into branch 'master'.

Convert global static QString to QLatin1StringView

Fix Clazy warning: non-POD static (QString
Gui::trojita_opacityAnimation)
[-Wclazy-non-pod-global-static]

M  +2    -2    src/Gui/ComposeWidget.cpp

https://invent.kde.org/pim/trojita/-/commit/e4b6b0fd98e7a7a71cb9557eab2a133fff5b346a

diff --git a/src/Gui/ComposeWidget.cpp b/src/Gui/ComposeWidget.cpp
index 361ee8eef..764c2c0cf 100644
--- a/src/Gui/ComposeWidget.cpp
+++ b/src/Gui/ComposeWidget.cpp
@@ -72,13 +72,13 @@
 namespace
 {
 enum { OFFSET_OF_FIRST_ADDRESSEE = 1, MIN_MAX_VISIBLE_RECIPIENTS = 4 };
+
+static constexpr QLatin1StringView trojita_opacityAnimation("trojita_opacityAnimation");
 }
 
 namespace Gui
 {
 
-static const QString trojita_opacityAnimation = QStringLiteral("trojita_opacityAnimation");
-
 /** @short Keep track of whether the document has been updated since the last save */
 class ComposerSaveState
 {
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.