Skip to content

Commit 373ee99

Browse files
committed
constify method return
1 parent eebf700 commit 373ee99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/dtlmod/DTL.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class DTL {
5858

5959
/// @brief Retrieve all streams declared in the Data Transport by its name.
6060
/// @return a map of handlers on Stream objects with their names as keys.
61-
std::unordered_map<std::string, std::shared_ptr<Stream>> get_all_streams() const { return streams_; }
61+
const std::unordered_map<std::string, std::shared_ptr<Stream>>& get_all_streams() const { return streams_; }
6262

6363
/// @brief Retrieve a data stream from the Data Transport Layer by its name.
6464
/// @param name The name of the Stream to retrieve.

0 commit comments

Comments
 (0)