From 046881e32fe569e632388f1a5f88abeb1db91f60 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 18 Apr 2021 19:40:43 +0200 Subject: [PATCH] Add AddrStat::operator+=( AddrStat ). --- server/TracySourceView.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/TracySourceView.hpp b/server/TracySourceView.hpp index 97a9a8a8..c548070c 100644 --- a/server/TracySourceView.hpp +++ b/server/TracySourceView.hpp @@ -104,6 +104,13 @@ private: { uint32_t local; uint32_t ext; + + AddrStat& operator+=( const AddrStat& other ) + { + local += other.local; + ext += other.ext; + return *this; + } }; public: