cpp-common/bt2: add missing return in `SelfComponentPort::data`
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 12 Feb 2024 21:17:51 +0000 (16:17 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 19 Feb 2024 18:10:15 +0000 (13:10 -0500)
Change-Id: Ib381d8ee919206361f81721ca418b7fdba330c9c
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11792
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>
src/cpp-common/bt2/self-component-port.hpp

index 6b6cff147d977f1ef31bc5f551b1e39e8740af65..2551064ecbd1cdcbf17e53abc95343ac2229ac4f 100644 (file)
@@ -539,7 +539,7 @@ public:
     template <typename T>
     T& data() const noexcept
     {
-        *static_cast<T *>(bt_self_component_port_get_data(this->_libSelfCompPortPtr()));
+        return *static_cast<T *>(bt_self_component_port_get_data(this->_libSelfCompPortPtr()));
     }
 
 private:
This page took 0.025304 seconds and 4 git commands to generate.