浏览代码

Merge pull request #3214 from afishbeck/appendJSONValue_return

gh-3200 Return StringBuffer reference from appendJSONValue

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 13 年之前
父节点
当前提交
dc9bc5371f
共有 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);