.gitignore: add some more IDE / tools related file
[babeltrace.git] / src / cpp-common / bt2 / self-component-class.hpp
index 3aa28f2c0656fd42e48f6bd87ecb568c823cfc69..9a0275fd3d5e4249d90d21b8e1eecb22ca993e8e 100644 (file)
@@ -9,6 +9,8 @@
 
 #include <babeltrace2/babeltrace.h>
 
+#include "cpp-common/bt2c/c-string-view.hpp"
+
 #include "borrowed-object.hpp"
 
 namespace bt2 {
@@ -16,7 +18,7 @@ namespace bt2 {
 class SelfComponentClass final : public BorrowedObject<bt_self_component_class>
 {
 public:
-    explicit SelfComponentClass(const _LibObjPtr libObjPtr) noexcept :
+    explicit SelfComponentClass(const LibObjPtr libObjPtr) noexcept :
         _ThisBorrowedObject {libObjPtr}
     {
     }
@@ -36,17 +38,17 @@ public:
     {
     }
 
-    const char *name() const noexcept
+    bt2c::CStringView name() const noexcept
     {
         return bt_component_class_get_name(this->_libCompClsPtr());
     }
 
-    const char *description() const noexcept
+    bt2c::CStringView description() const noexcept
     {
         return bt_component_class_get_description(this->_libCompClsPtr());
     }
 
-    const char *help() const noexcept
+    bt2c::CStringView help() const noexcept
     {
         return bt_component_class_get_help(this->_libCompClsPtr());
     }
This page took 0.024301 seconds and 4 git commands to generate.