Skip to content

Commit

Permalink
Remove const when passing argument by value
Browse files Browse the repository at this point in the history
Signed-off-by: Raul Sanchez-Mateos <[email protected]>
  • Loading branch information
rsanchez15 committed Oct 10, 2024
1 parent fb385e3 commit cf18205
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ddspipe_yaml/include/ddspipe_yaml/YamlWriter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ template <typename T>
void set(
Yaml& yml,
const T& value,
const bool is_compact);
bool is_compact);

//! Set the \c value in a new yaml in \c yml under \c tag .
template <typename T>
Expand Down
6 changes: 3 additions & 3 deletions ddspipe_yaml/include/ddspipe_yaml/impl/YamlWriter.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ template <typename T>
void set_collection(
Yaml& yml,
const std::vector<T>& collection,
const bool is_compact);
bool is_compact);

template <typename K, typename T>
void set_map(
Expand Down Expand Up @@ -97,7 +97,7 @@ template <typename T>
void set(
Yaml& yml,
const std::vector<T>& collection,
const bool is_compact)
bool is_compact)
{
set_collection(yml, collection, is_compact);
}
Expand Down Expand Up @@ -149,7 +149,7 @@ template <typename T>
void set_collection(
Yaml& yml,
const std::vector<T>& collection,
const bool is_compact)
bool is_compact)
{
for (const auto& v : collection)
{
Expand Down

0 comments on commit cf18205

Please sign in to comment.