From 24f25751cec09f361a00a40049d332c70015b305 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 23 Sep 2020 17:39:53 +0200 Subject: [PATCH] Prevent move and copy of ScopedZone. --- client/TracyScoped.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/TracyScoped.hpp b/client/TracyScoped.hpp index 39fac5a6..2e0a4a6a 100644 --- a/client/TracyScoped.hpp +++ b/client/TracyScoped.hpp @@ -16,6 +16,11 @@ namespace tracy class ScopedZone { public: + ScopedZone( const ScopedZone& ) = delete; + ScopedZone( ScopedZone&& ) = delete; + ScopedZone& operator=( const ScopedZone& ) = delete; + ScopedZone& operator=( ScopedZone&& ) = delete; + tracy_force_inline ScopedZone( const SourceLocationData* srcloc, bool is_active = true ) #ifdef TRACY_ON_DEMAND : m_active( is_active && GetProfiler().IsConnected() )