[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.4' - include/comphelper

Tor Lillqvist (via logerrit) logerrit at kemper.freedesktop.org
Thu Apr 29 12:12:16 UTC 2021


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

New commits:
commit 9302478952df0bc5456c9e36b5659626d1da31b3
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Tue Apr 27 09:49:21 2021 +0300
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Thu Apr 29 14:11:41 2021 +0200

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

diff --git a/include/comphelper/profilezone.hxx b/include/comphelper/profilezone.hxx
index bddf313f62d2..22fe107a3bf1 100644
--- a/include/comphelper/profilezone.hxx
+++ b/include/comphelper/profilezone.hxx
@@ -51,6 +51,7 @@ class COMPHELPER_DLLPUBLIC ProfileZone : public TraceEvent
         else
             m_nCreateTime = 0;
     }
+
     ~ProfileZone()
     {
         if (s_bRecording)
@@ -60,6 +61,9 @@ class COMPHELPER_DLLPUBLIC ProfileZone : public TraceEvent
         }
     }
 
+    ProfileZone(const ProfileZone&) = delete;
+    void operator=(const ProfileZone&) = delete;
+
     static void startRecording();
     static void stopRecording();
 


More information about the Libreoffice-commits mailing list