浏览代码

fix toJSON function and some VS warnings

Alex Fabijanic 8 年之前
父节点
当前提交
fac2437fab
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      Foundation/src/JSONString.cpp
  2. 1 1
      JSON/src/Stringifier.cpp

+ 1 - 1
Foundation/src/JSONString.cpp

@@ -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;

+ 1 - 1
JSON/src/Stringifier.cpp

@@ -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;