[pim/trojita] src/IPC: Convert global static QString to QLatin1StringView
Espen Sandøy Hustad <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 3b70f9d9c68bc4af0ab2b56cf70a76fc85bc960b 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 IPC::path)
[-Wclazy-non-pod-global-static]
M +2 -3 src/IPC/DBusInterface.cpp
https://invent.kde.org/pim/trojita/-/commit/3b70f9d9c68bc4af0ab2b56cf70a76fc85bc960b
diff --git a/src/IPC/DBusInterface.cpp b/src/IPC/DBusInterface.cpp
index 60dc669ab..7a730297e 100644
--- a/src/IPC/DBusInterface.cpp
+++ b/src/IPC/DBusInterface.cpp
@@ -30,6 +30,8 @@
namespace {
+static constexpr QLatin1StringView path("/Trojita");
+
QString service()
{
QString str = QStringLiteral("net.flaska.trojita");
@@ -39,9 +41,6 @@ QString service()
}
namespace IPC {
-
-static QString path = QStringLiteral("/Trojita");
-
namespace Instance {
static QDBusInterface &interface()