Explorar o código

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 %!s(int64=13) %!d(string=hai) anos
pai
achega
c982500600
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);