passify gcc

This commit is contained in:
Alex Fabijanic
2015-02-10 10:34:41 -06:00
parent 838a7bbcae
commit 1e0663563b

View File

@@ -39,13 +39,13 @@ std::string toJSON(char c)
void toJSON(const std::string& value, std::ostream& out, bool wrap) void toJSON(const std::string& value, std::ostream& out, bool wrap)
{ {
if (wrap) out << '"'; if (wrap) out << std::string(1, '"');
for (std::string::const_iterator it = value.begin(), for (std::string::const_iterator it = value.begin(),
end = value.end(); it != end; ++it) end = value.end(); it != end; ++it)
{ {
out << toJSON(*it); out << toJSON(*it);
} }
if (wrap) out << '"'; if (wrap) out << std::string(1, '"');
} }