X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fcpp-common%2Fbt2%2Ferror.hpp;h=030ff239a9aaa2eeae88d6eeaedb82e3a121e14c;hb=1c5ea5eb3a9adbc3adc4a3a36a6cf09f7fa05bf1;hp=7daaaf6b4b17c41c05ac88c204ee80110a39075e;hpb=eee15e593cc1c99b61d5d7089aea2f47e820b461;p=babeltrace.git diff --git a/src/cpp-common/bt2/error.hpp b/src/cpp-common/bt2/error.hpp index 7daaaf6b..030ff239 100644 --- a/src/cpp-common/bt2/error.hpp +++ b/src/cpp-common/bt2/error.hpp @@ -30,10 +30,10 @@ class ConstErrorCause : public BorrowedObject public: enum class ActorType { - UNKNOWN = BT_ERROR_CAUSE_ACTOR_TYPE_UNKNOWN, - COMPONENT = BT_ERROR_CAUSE_ACTOR_TYPE_COMPONENT, - COMPONENT_CLASS = BT_ERROR_CAUSE_ACTOR_TYPE_COMPONENT_CLASS, - MESSAGE_ITERATOR = BT_ERROR_CAUSE_ACTOR_TYPE_MESSAGE_ITERATOR, + Unknown = BT_ERROR_CAUSE_ACTOR_TYPE_UNKNOWN, + Component = BT_ERROR_CAUSE_ACTOR_TYPE_COMPONENT, + ComponentClass = BT_ERROR_CAUSE_ACTOR_TYPE_COMPONENT_CLASS, + MessageIterator = BT_ERROR_CAUSE_ACTOR_TYPE_MESSAGE_ITERATOR, }; explicit ConstErrorCause(const LibObjPtr libObjPtr) noexcept : _ThisBorrowedObject {libObjPtr} @@ -47,17 +47,17 @@ public: bool actorTypeIsComponentClass() const noexcept { - return this->actorType() == ActorType::COMPONENT_CLASS; + return this->actorType() == ActorType::ComponentClass; } bool actorTypeIsComponent() const noexcept { - return this->actorType() == ActorType::COMPONENT; + return this->actorType() == ActorType::Component; } bool actorTypeIsMessageIterator() const noexcept { - return this->actorType() == ActorType::MESSAGE_ITERATOR; + return this->actorType() == ActorType::MessageIterator; } ConstComponentClassErrorCause asComponentClass() const noexcept;