cpp-common/bt2: make setters return `*this`
[babeltrace.git] / src / cpp-common / bt2 / integer-range-set.hpp
index 403b7fe7ee87248148507a2a26d9e2eab8f3272c..090520bc601cd1fecc7b538d1a92c899767641ef 100644 (file)
@@ -195,7 +195,7 @@ public:
         return !(*this == other);
     }
 
-    void addRange(const Value lower, const Value upper) const
+    CommonIntegerRangeSet addRange(const Value lower, const Value upper) const
     {
         static_assert(
             !std::is_const<LibObjT>::value,
@@ -206,6 +206,8 @@ public:
         if (status == BT_INTEGER_RANGE_SET_ADD_RANGE_STATUS_MEMORY_ERROR) {
             throw MemoryError {};
         }
+
+        return *this;
     }
 
     std::uint64_t length() const noexcept
This page took 0.023423 seconds and 4 git commands to generate.