cpp-common/bt2: return `bt2c::CStringView` instead of `const char *`
[babeltrace.git] / src / cpp-common / bt2 / clock-class.hpp
index fd2683bd38d8362091288230c76685e5e3b2eea5..6c8c66380588cff939459947c95cec9895ba1259 100644 (file)
@@ -13,6 +13,7 @@
 
 #include <babeltrace2/babeltrace.h>
 
+#include "cpp-common/bt2c/c-string-view.hpp"
 #include "cpp-common/bt2c/uuid.hpp"
 #include "cpp-common/bt2s/optional.hpp"
 
@@ -188,7 +189,7 @@ public:
         this->name(name.data());
     }
 
-    const char *name() const noexcept
+    bt2c::CStringView name() const noexcept
     {
         return bt_clock_class_get_name(this->libObjPtr());
     }
@@ -209,7 +210,7 @@ public:
         this->description(description.data());
     }
 
-    const char *description() const noexcept
+    bt2c::CStringView description() const noexcept
     {
         return bt_clock_class_get_description(this->libObjPtr());
     }
This page took 0.053754 seconds and 4 git commands to generate.