summaryrefslogtreecommitdiff
path: root/include/comphelper
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2021-04-27 09:49:21 +0300
committerTor Lillqvist <tml@collabora.com>2021-04-28 13:43:19 +0200
commit2d867eff480c03ab125f4c0149dd73afee08db85 (patch)
tree5691b6197a78ae0ee78fb6cb7897b33771c4c9db /include/comphelper
parent898a74af8270547d35504ce478613787530eba6a (diff)
Make ProfileZone non-copyable
Change-Id: Ia1fe5311751bcb2b2f2bde3408aac836db75e98a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114697 Tested-by: Jenkins Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'include/comphelper')
-rw-r--r--include/comphelper/profilezone.hxx4
1 files changed, 4 insertions, 0 deletions
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();