Sfoglia il codice sorgente

Remove superfluous const from return type in json_stream_parser.h (#5295)

Michał Janiszewski 7 anni fa
parent
commit
75a1850853
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/google/protobuf/util/internal/json_stream_parser.h

+ 1 - 1
src/google/protobuf/util/internal/json_stream_parser.h

@@ -95,7 +95,7 @@ class PROTOBUF_EXPORT JsonStreamParser {
  private:
   friend class JsonStreamParserTest;
   // Return the current recursion depth.
-  const int recursion_depth() { return recursion_depth_; }
+  int recursion_depth() { return recursion_depth_; }
 
   enum TokenType {
     BEGIN_STRING,     // " or '