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
@@ -40,7 +40,7 @@ UserData::UserData( const char* program, uint64_t time )
fseek( f, 0, SEEK_END );
const auto sz = ftell( f );
fseek( f, 0, SEEK_SET );
auto buf = std::make_unique<char[]>( sz );
auto buf = std::unique_ptr<char[]>(new char[sz]);
fread( buf.get(), 1, sz, f );
fclose( f );
m_description.assign( buf.get(), buf.get() + sz );