Fix formatting for non-string values in arrays

fixes #7388
This commit is contained in:
Gunnar Beutner 2014-10-15 18:41:52 +02:00
parent f92282ae0e
commit 408939c9fb
1 changed files with 3 additions and 3 deletions

View File

@ -159,7 +159,7 @@ String ObjectListCommand::FormatProperties(const Dictionary::Ptr& props, const D
int offset = 2;
BOOST_FOREACH(const Dictionary::Pair& kv, props) {
Value key = kv.first;
String key = kv.first;
Value val = kv.second;
/* key & value */
@ -214,7 +214,7 @@ String ObjectListCommand::FormatTypeCounts(const std::map<String, int>& type_cou
typedef std::map<String, int>::value_type TypeCount;
BOOST_FOREACH(TypeCount kv, type_count) {
BOOST_FOREACH(const TypeCount& kv, type_count) {
msgbuf << "Found " << kv.second << " " << kv.first << " objects.\n";
}
@ -246,7 +246,7 @@ String ObjectListCommand::FormatArray(const Array::Ptr& arr)
else
str += ", ";
str += "'" + Convert::ToString(value) + "'";
str += FormatValue(value);
}
}