1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Fix: Don't let make_unique initialise data unnecessarily

This commit is contained in:
sean
2023-01-03 13:07:52 +01:00
parent 5a3d7b6f56
commit b597ab5a0a
3 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -2722,7 +2722,7 @@ const unordered_flat_map<CallstackFrameId, uint32_t, Worker::CallstackFrameIdHas
void Worker::Network()
{
auto ShouldExit = [this] { return m_shutdown.load( std::memory_order_relaxed ); };
auto lz4buf = std::make_unique<char[]>( LZ4Size );
auto lz4buf = std::unique_ptr<char[]>( new char[LZ4Size] );
for(;;)
{