Browse Source

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 years ago
parent
commit
dc9bc5371f
1 changed files with 1 additions and 1 deletions
  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)
 inline StringBuffer &appendJSONValue(StringBuffer& s, const char *name, unsigned long value)
 {
 {
     appendJSONName(s, name);
     appendJSONName(s, name);
-    s.appendulong(value);
+    return s.appendulong(value);
 }
 }
 
 
 extern jlib_decl void decodeCppEscapeSequence(StringBuffer & out, const char * in, bool errorIfInvalid);
 extern jlib_decl void decodeCppEscapeSequence(StringBuffer & out, const char * in, bool errorIfInvalid);