diff options
author | Tor Lillqvist <tml@collabora.com> | 2021-04-27 09:49:21 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2021-04-29 10:37:03 +0200 |
commit | 27c89553b3a02a8d00b19d0a2e305553e270348a (patch) | |
tree | 681d41502cf8843db2c32f11b4c0339b7f1175a2 | |
parent | 6aed228d77738a7e94610c3d114218d760ebaf48 (diff) |
Make ProfileZone non-copyable
Change-Id: Ia1fe5311751bcb2b2f2bde3408aac836db75e98a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114791
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
-rw-r--r-- | include/comphelper/profilezone.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/comphelper/profilezone.hxx b/include/comphelper/profilezone.hxx index 8ed591852807..bd54667b1980 100644 --- a/include/comphelper/profilezone.hxx +++ b/include/comphelper/profilezone.hxx @@ -70,6 +70,7 @@ class COMPHELPER_DLLPUBLIC ProfileZone : public TraceEvent startConsole(); } } + ~ProfileZone() { if (s_bRecording) @@ -83,6 +84,9 @@ class COMPHELPER_DLLPUBLIC ProfileZone : public TraceEvent } } + ProfileZone(const ProfileZone&) = delete; + void operator=(const ProfileZone&) = delete; + static void startRecording(); static void stopRecording(); |