浏览代码

gh-3200 Return StringBuffer reference from appendJSONValue

appendJSONValue was not returning anything, but is defined to return
a StringBuffer&.

Fixes gh-3200

Signed-off-by: Anthony Fishbeck <Anthony.Fishbeck@lexisnexis.com>
Anthony Fishbeck 13 年之前
父节点
当前提交
c982500600
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      system/jlib/jstring.hpp

+ 1 - 1
system/jlib/jstring.hpp

@@ -449,7 +449,7 @@ template <>
 inline StringBuffer &appendJSONValue(StringBuffer& s, const char *name, unsigned long value)
 {
     appendJSONName(s, name);
-    s.appendulong(value);
+    return s.appendulong(value);
 }
 
 extern jlib_decl void decodeCppEscapeSequence(StringBuffer & out, const char * in, bool errorIfInvalid);