[Libreoffice-commits] online.git: common/Log.cpp

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Sep 13 09:07:41 UTC 2018


 common/Log.cpp |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 83a7a6f7446069b9690fc05b77b6063107cb6aa9
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Thu Sep 13 11:52:08 2018 +0300
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Thu Sep 13 12:06:23 2018 +0300

    s/StaticNames/StaticNameHelper
    
    It is a container for one name (and used just once even), not several,
    so no need for the plural.
    
    Change-Id: I6d8b22f071d5136fb854e6f2c5a6be8b4572b535

diff --git a/common/Log.cpp b/common/Log.cpp
index 115901ecc..38e93c2cb 100644
--- a/common/Log.cpp
+++ b/common/Log.cpp
@@ -40,21 +40,21 @@ namespace Log
     using namespace Poco;
 
     /// Helper to avoid destruction ordering issues.
-    struct StaticNames
+    struct StaticNameHelper
     {
         std::atomic<bool> inited;
         std::string name;
         std::string id;
-        StaticNames() :
+        StaticNameHelper() :
             inited(true)
         {
         }
-        ~StaticNames()
+        ~StaticNameHelper()
         {
             inited = false;
         }
     };
-    static StaticNames Source;
+    static StaticNameHelper Source;
 
     // We need a signal safe means of writing messages
     //   $ man 7 signal


More information about the Libreoffice-commits mailing list