From e1554a13e045e37a7aa2bf7b489db1e477c95288 Mon Sep 17 00:00:00 2001 From: Joshua Kriegshauser Date: Wed, 2 Oct 2024 11:21:14 -0700 Subject: [PATCH] PR feedback --- public/client/TracyProfiler.cpp | 3 +-- public/client/TracyProfiler.hpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/public/client/TracyProfiler.cpp b/public/client/TracyProfiler.cpp index 20738ac2..ac1c03ad 100644 --- a/public/client/TracyProfiler.cpp +++ b/public/client/TracyProfiler.cpp @@ -1463,7 +1463,6 @@ Profiler::Profiler() m_userPort = atoi( userPort ); } - m_safeSendBufferSize = 65536; m_safeSendBuffer = (char*)tracy_malloc( m_safeSendBufferSize ); #ifndef _WIN32 @@ -1528,7 +1527,7 @@ void Profiler::RemoveCrashHandler() #if defined __linux__ && !defined TRACY_NO_CRASH_HANDLER if( m_crashHandlerInstalled ) { - auto restore = [ this ]( int signum, struct sigaction* prev ) { + auto restore = []( int signum, struct sigaction* prev ) { struct sigaction old; sigaction( signum, prev, &old ); if( old.sa_sigaction != CrashHandler ) sigaction( signum, &old, nullptr ); // A different signal handler was installed over ours => put it back diff --git a/public/client/TracyProfiler.hpp b/public/client/TracyProfiler.hpp index 2fbaf9b4..883ebd4f 100644 --- a/public/client/TracyProfiler.hpp +++ b/public/client/TracyProfiler.hpp @@ -1010,7 +1010,7 @@ private: std::atomic_bool m_inUse{ false }; #endif char* m_safeSendBuffer; - size_t m_safeSendBufferSize; + constexpr static size_t m_safeSendBufferSize = 65536; #if defined _WIN32 void* m_prevHandler;