From cf8d17c2ec7fa60288b91e29fbf5de84e1504b29 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 3 Mar 2019 16:36:00 +0100 Subject: [PATCH] Move VarArray hash calculation to a separate function. --- server/TracyVarArray.hpp | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/server/TracyVarArray.hpp b/server/TracyVarArray.hpp index d63a9772..45f6d2c9 100644 --- a/server/TracyVarArray.hpp +++ b/server/TracyVarArray.hpp @@ -21,12 +21,7 @@ public: : m_size( size ) , m_ptr( data ) { - T hash = 5381; - for( uint8_t i=0; i +void VarArray::CalcHash() +{ + T hash = 5381; + for( uint8_t i=0; i bool Compare( const VarArray& lhs, const VarArray& rhs ) {