Skip to content

Commit

Permalink
Mark GenericParameters::print as const (AIDASoft#621)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener authored Jun 10, 2024
1 parent 99caa5e commit e674c04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/podio/GenericParameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class GenericParameters {
_stringMap.clear();
}

void print(std::ostream& os = std::cout, bool flush = true);
void print(std::ostream& os = std::cout, bool flush = true) const;

/// Check if no parameter is stored (i.e. if all internal maps are empty)
bool empty() const {
Expand Down
2 changes: 1 addition & 1 deletion src/GenericParameters.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void printMap(const MapType& map, std::ostream& os) {
os.flags(osflags);
}

void GenericParameters::print(std::ostream& os, bool flush) {
void GenericParameters::print(std::ostream& os, bool flush) const {
os << "int parameters\n\n";
printMap(getMap<int>(), os);
os << "\nfloat parameters\n";
Expand Down

0 comments on commit e674c04

Please sign in to comment.