From: Simon Marchi Date: Thu, 28 Mar 2024 18:30:22 +0000 (-0400) Subject: Fix: cpp-common/bt2c: copy `_mSelfCompCls` when constructing `Logger` X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=eee15e593cc1c99b61d5d7089aea2f47e820b461 Fix: cpp-common/bt2c: copy `_mSelfCompCls` when constructing `Logger` Change-Id: Ic7e8ddc09a4f943f845821e16323cf2d5c1a667c Signed-off-by: Simon Marchi Reviewed-on: https://review.lttng.org/c/babeltrace/+/12211 Reviewed-by: Philippe Proulx Tested-by: jenkins --- diff --git a/src/cpp-common/bt2c/logging.hpp b/src/cpp-common/bt2c/logging.hpp index e258beaf..c36e19b7 100644 --- a/src/cpp-common/bt2c/logging.hpp +++ b/src/cpp-common/bt2c/logging.hpp @@ -134,7 +134,8 @@ public: * `newTag`. */ explicit Logger(const Logger& other, std::string newTag) : - _mSelfComp {other._mSelfComp}, _mSelfMsgIter {other._mSelfMsgIter}, + _mSelfCompCls {other._mSelfCompCls}, _mSelfComp {other._mSelfComp}, + _mSelfMsgIter {other._mSelfMsgIter}, _mModuleName {other._mModuleName}, _mLevel {other._mLevel}, _mTag {std::move(newTag)} { }