fix toJSON function and some VS warnings

This commit is contained in:
Alex Fabijanic 2018-02-08 19:23:15 -06:00
parent 2be0661a0b
commit 68fedf3136
3 changed files with 3 additions and 3 deletions

View File

@ -75,7 +75,7 @@ void toJSON(const std::string& value, std::ostream& out, bool wrap)
}
std::string toJSON(const std::string& value, bool wrap, bool escapeAllUnicode)
std::string toJSON(const std::string& value, bool wrap)
{
int options = (wrap ? Poco::JSON_WRAP_STRINGS : 0);
std::string ret;

View File

@ -27,7 +27,7 @@ namespace JSON {
void Stringifier::stringify(const Var& any, std::ostream& out, unsigned int indent, int step, int options)
{
bool escapeUnicode = options & Poco::JSON_ESCAPE_UNICODE;
bool escapeUnicode = ((options & Poco::JSON_ESCAPE_UNICODE) != 0);
if (step == -1) step = indent;

@ -1 +1 @@
Subproject commit 26b1673caad94a702b6d694f48f917a283b30777
Subproject commit b42dcf2175f30e0c21dc9a684f0b9670f4ed09c8