mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Proper initialization order.
This commit is contained in:
@@ -15,8 +15,8 @@ class Slab
|
||||
public:
|
||||
Slab()
|
||||
: m_ptr( new char[BlockSize] )
|
||||
, m_buffer( { m_ptr } )
|
||||
, m_offset( 0 )
|
||||
, m_buffer( { m_ptr } )
|
||||
{
|
||||
memUsage.fetch_add( BlockSize, std::memory_order_relaxed );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user