Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf.pld@gmail.com>2020-02-23 21:47:09 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2020-02-23 21:47:09 +0300
commitd150e688f5fb6151ab3ca576a0f601839a1a5587 (patch)
treef4d280c29b645b7c0fbd7a4c58ed103d0313eeac /server/TracyVector.hpp
parent00d91cb9ab255d22309ea80993614c7b02a43fb1 (diff)
Simpler vector init.
Diffstat (limited to 'server/TracyVector.hpp')
-rw-r--r--server/TracyVector.hpp5
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;