cpp-common/bt2: make `CommonClockClass::uuid` take a `bt2c::UuidView`
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 29 Feb 2024 19:13:46 +0000 (14:13 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 26 Mar 2024 18:56:36 +0000 (14:56 -0400)
This, combined with a following patch that makes the constructors of
`bt2c::UuidView` implicit, makes it possible to pass a `bt2c::Uuid`
object directly to `CommonClockClass::uuid()`.

Change-Id: I336763e128bef5de8e208bc7fafcd9df59d7672a
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11952
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/cpp-common/bt2/clock-class.hpp

index e8780c385a3f340e6a667bec073e1abb6d38afd7..ad033b0e5587b71fa72e8d1f235362f987ae011b 100644 (file)
@@ -213,9 +213,9 @@ public:
         return bt_clock_class_get_description(this->libObjPtr());
     }
 
-    CommonClockClass uuid(const std::uint8_t * const uuid) const noexcept
+    CommonClockClass uuid(const bt2c::UuidView uuid) const noexcept
     {
-        bt_clock_class_set_uuid(this->libObjPtr(), uuid);
+        bt_clock_class_set_uuid(this->libObjPtr(), uuid.data());
         return *this;
     }
 
This page took 0.024828 seconds and 4 git commands to generate.