From eee15e593cc1c99b61d5d7089aea2f47e820b461 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Thu, 28 Mar 2024 14:30:22 -0400 Subject: [PATCH] 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 --- src/cpp-common/bt2c/logging.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)} { } -- 2.34.1