mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 16:48:06 +02:00
fix toJSON function and some VS warnings
This commit is contained in:
@@ -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);
|
int options = (wrap ? Poco::JSON_WRAP_STRINGS : 0);
|
||||||
std::string ret;
|
std::string ret;
|
||||||
|
@@ -27,7 +27,7 @@ namespace JSON {
|
|||||||
|
|
||||||
void Stringifier::stringify(const Var& any, std::ostream& out, unsigned int indent, int step, int options)
|
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;
|
if (step == -1) step = indent;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user