Skip to content

Commit abcc3c3

Browse files
committed
use const ref
1 parent 612390c commit abcc3c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/reactor-cpp/multiport.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ private:
3535
[[nodiscard]] auto get_set_callback(std::size_t index) noexcept -> PortCallback;
3636
const PortCallback clean_callback_{[this]([[maybe_unused]] const BasePort& port) { this->reset(); }};
3737

38-
[[nodiscard]] auto get_clean_callback() const noexcept -> PortCallback { return clean_callback_; }
38+
[[nodiscard]] auto get_clean_callback() const noexcept -> const PortCallback& { return clean_callback_; }
3939

4040
protected:
4141
[[nodiscard]] inline auto present_ports() const -> const auto& { return present_ports_; }

0 commit comments

Comments
 (0)