Skip to content

Commit

Permalink
Fix missing const references
Browse files Browse the repository at this point in the history
refs #7251
  • Loading branch information
Michael Friedrich committed Oct 15, 2014
1 parent 7a56f3c commit 5c4f099
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions lib/cli/objectlistcommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ int ObjectListCommand::Run(const boost::program_options::variables_map& vm, cons
return 0;
}

void ObjectListCommand::ReadObject(const String& message, std::map<String, int>& type_count, String name_filter, String type_filter)
void ObjectListCommand::ReadObject(const String& message, std::map<String, int>& type_count, const String& name_filter, const String& type_filter)
{
Dictionary::Ptr object = JsonDeserialize(message);

Expand Down Expand Up @@ -206,8 +206,7 @@ String ObjectListCommand::FormatHint(const Array::Ptr& msg, int indent)
return msgbuf.str();
}


String ObjectListCommand::FormatTypeCounts(std::map<String, int> type_count)
String ObjectListCommand::FormatTypeCounts(const std::map<String, int>& type_count)
{
std::ostringstream msgbuf;

Expand Down
4 changes: 2 additions & 2 deletions lib/cli/objectlistcommand.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ class ObjectListCommand : public CLICommand
virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const;

private:
static void ReadObject(const String& message, std::map<String, int>& type_count, String name_filter, String type_filter);
static void ReadObject(const String& message, std::map<String, int>& type_count, const String& name_filter, const String& type_filter);
static String FormatProperties(const Dictionary::Ptr& props, const Dictionary::Ptr& debug_hints, int indent = 0);
static String FormatHints(const Dictionary::Ptr& hints, int indent = 0);
static String FormatHint(const Array::Ptr& msg, int indent = 0);
static String FormatTypeCounts(std::map<String, int> type_count);
static String FormatTypeCounts(const std::map<String, int>& type_count);
static String FormatValue(const Value& val);
static String FormatArray(const Array::Ptr& arr);
};
Expand Down

0 comments on commit 5c4f099

Please sign in to comment.