From 373ee99cf6d3c6c6187e319cfc833b22bb2984c8 Mon Sep 17 00:00:00 2001 From: Fred Suter Date: Tue, 14 Jan 2025 09:26:53 -0500 Subject: [PATCH] constify method return --- include/dtlmod/DTL.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dtlmod/DTL.hpp b/include/dtlmod/DTL.hpp index 4253d67..9828cc8 100644 --- a/include/dtlmod/DTL.hpp +++ b/include/dtlmod/DTL.hpp @@ -58,7 +58,7 @@ class DTL { /// @brief Retrieve all streams declared in the Data Transport by its name. /// @return a map of handlers on Stream objects with their names as keys. - std::unordered_map> get_all_streams() const { return streams_; } + const std::unordered_map>& get_all_streams() const { return streams_; } /// @brief Retrieve a data stream from the Data Transport Layer by its name. /// @param name The name of the Stream to retrieve.