[pim/trojita] src/IPC: Move local helper function to anonymous namespace

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

Move local helper function to anonymous namespace

M  +6    -3    src/IPC/DBusInterface.cpp

https://invent.kde.org/pim/trojita/-/commit/5ce4f9aa228e8cab16eeeec9220f5deb410f9e3a

diff --git a/src/IPC/DBusInterface.cpp b/src/IPC/DBusInterface.cpp
index 2e9772d4f..60dc669ab 100644
--- a/src/IPC/DBusInterface.cpp
+++ b/src/IPC/DBusInterface.cpp
@@ -28,9 +28,7 @@
 
 #include "IPC.h"
 
-namespace IPC {
-
-static QString path = QStringLiteral("/Trojita");
+namespace {
 
 QString service()
 {
@@ -38,6 +36,11 @@ QString service()
     QString profileName = QString::fromUtf8(qgetenv("TROJITA_PROFILE"));
     return profileName.isEmpty() ? str : str + QLatin1Char('-') + profileName;
 }
+}
+
+namespace IPC {
+
+static QString path = QStringLiteral("/Trojita");
 
 namespace Instance {
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.