Преглед на файлове

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