Skip to content

Commit

Permalink
constify method return
Browse files Browse the repository at this point in the history
  • Loading branch information
frs69wq committed Jan 14, 2025
1 parent eebf700 commit 373ee99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/dtlmod/DTL.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::string, std::shared_ptr<Stream>> get_all_streams() const { return streams_; }
const std::unordered_map<std::string, std::shared_ptr<Stream>>& 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.
Expand Down

0 comments on commit 373ee99

Please sign in to comment.