diff options
author | Bartosz Taudul <wolf.pld@gmail.com> | 2020-02-23 21:47:09 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf.pld@gmail.com> | 2020-02-23 21:47:09 +0300 |
commit | d150e688f5fb6151ab3ca576a0f601839a1a5587 (patch) | |
tree | f4d280c29b645b7c0fbd7a4c58ed103d0313eeac /server/TracyVector.hpp | |
parent | 00d91cb9ab255d22309ea80993614c7b02a43fb1 (diff) |
Simpler vector init.
Diffstat (limited to 'server/TracyVector.hpp')
-rw-r--r-- | server/TracyVector.hpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/server/TracyVector.hpp b/server/TracyVector.hpp index 75febbb2..ca24b7a6 100644 --- a/server/TracyVector.hpp +++ b/server/TracyVector.hpp @@ -29,11 +29,8 @@ public: using const_iterator = const T*; tracy_force_inline Vector() - : m_ptr( nullptr ) - , m_size( 0 ) - , m_capacity( 0 ) - , m_magic( 0 ) { + memset( this, 0, sizeof( Vector<T> ) ); } Vector( const Vector& ) = delete; |