Przeglądaj źródła

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 lat temu
rodzic
commit
c982500600
1 zmienionych plików z 1 dodań i 1 usunięć
  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);