diff options
author | Bartosz Taudul <wolf.pld@gmail.com> | 2019-11-03 18:29:05 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf.pld@gmail.com> | 2019-11-03 18:29:45 +0300 |
commit | 5620597fb4cc1c08f9ea31749e36a6472f212343 (patch) | |
tree | 4ff1c9e2b1a2e7e8bf267ad428729ce0343f47b4 /server/TracyShortPtr.hpp | |
parent | 390558b6272af8e042a8bc3a9f2a74a2a8897a20 (diff) |
Use short ptr in VarArray.
Diffstat (limited to 'server/TracyShortPtr.hpp')
-rw-r--r-- | server/TracyShortPtr.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/TracyShortPtr.hpp b/server/TracyShortPtr.hpp index c3f78f98..ad96cc7d 100644 --- a/server/TracyShortPtr.hpp +++ b/server/TracyShortPtr.hpp @@ -16,7 +16,7 @@ class short_ptr { public: tracy_force_inline short_ptr() {} - tracy_force_inline short_ptr( T* ptr ) { Set( ptr ); } + tracy_force_inline short_ptr( const T* ptr ) { Set( ptr ); } tracy_force_inline operator T*() { return Get(); } tracy_force_inline operator const T*() const { return Get(); } @@ -26,7 +26,7 @@ public: tracy_force_inline const T* operator->() const { return Get(); } private: - tracy_force_inline void Set( T* ptr ) + tracy_force_inline void Set( const T* ptr ) { assert( ( uint64_t( ptr ) & 0xFFFF000000000000 ) == 0 ); memcpy( m_ptr, &ptr, 4 ); |