Fix: cpp-common/bt2c: copy `_mSelfCompCls` when constructing `Logger`
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 28 Mar 2024 18:30:22 +0000 (14:30 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 17 Apr 2024 17:57:53 +0000 (13:57 -0400)
Change-Id: Ic7e8ddc09a4f943f845821e16323cf2d5c1a667c
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12211
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>
src/cpp-common/bt2c/logging.hpp

index e258beaf852f50243229f7d5070be756381b372d..c36e19b710d9d1863c4f367fe08b951a06446104 100644 (file)
@@ -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)}
     {
     }
This page took 0.025773 seconds and 4 git commands to generate.