[Libreoffice-commits] core.git: include/comphelper

Tor Lillqvist (via logerrit) logerrit at kemper.freedesktop.org
Wed Apr 28 11:44:04 UTC 2021


 include/comphelper/profilezone.hxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 2d867eff480c03ab125f4c0149dd73afee08db85
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Tue Apr 27 09:49:21 2021 +0300
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Wed Apr 28 13:43:19 2021 +0200

    Make ProfileZone non-copyable
    
    Change-Id: Ia1fe5311751bcb2b2f2bde3408aac836db75e98a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114697
    Tested-by: Jenkins
    Reviewed-by: Tor Lillqvist <tml at collabora.com>

diff --git a/include/comphelper/profilezone.hxx b/include/comphelper/profilezone.hxx
index 529e3d411742..474b296f184c 100644
--- a/include/comphelper/profilezone.hxx
+++ b/include/comphelper/profilezone.hxx
@@ -71,6 +71,7 @@ public:
             startConsole();
         }
     }
+
     ~ProfileZone()
     {
         if (s_bRecording)
@@ -84,6 +85,9 @@ public:
         }
     }
 
+    ProfileZone(const ProfileZone&) = delete;
+    void operator=(const ProfileZone&) = delete;
+
     static void startRecording();
     static void stopRecording();
 


More information about the Libreoffice-commits mailing list