From 2f44f65e026fd79be26adf84e186fedfb7a81f23 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 2 Sep 2022 18:47:13 +0200 Subject: [PATCH] Don't copy short_ptr. --- server/TracyWorker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index b86d1739..a79e8d96 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -8240,7 +8240,7 @@ void Worker::Write( FileWrite& f, bool fiDict ) f.Write( &sz, sizeof( sz ) ); for( size_t i=1; i<=sz; i++ ) { - auto cs = m_data.callstackPayload[i]; + auto& cs = m_data.callstackPayload[i]; uint16_t csz = cs->size(); f.Write( &csz, sizeof( csz ) ); f.Write( cs->data(), sizeof( CallstackFrameId ) * csz );