Skip to content

Commit 48112c8

Browse files
committed
Make several methods static.
1 parent c8bb600 commit 48112c8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/json/value.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ class JSON_API Path {
720720
const InArgs& in,
721721
InArgs::const_iterator& itInArg,
722722
PathArgument::Kind kind);
723-
void invalidPath(const JSONCPP_STRING& path, int location);
723+
static void invalidPath(const JSONCPP_STRING& path, int location);
724724

725725
Args args_;
726726
};

include/json/writer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ class JSONCPP_DEPRECATED("Use StreamWriterBuilder instead") JSON_API
249249
void unindent();
250250
void writeCommentBeforeValue(const Value& root);
251251
void writeCommentAfterValueOnSameLine(const Value& root);
252-
bool hasCommentForValue(const Value& value);
252+
static bool hasCommentForValue(const Value& value);
253253
static JSONCPP_STRING normalizeEOL(const JSONCPP_STRING& text);
254254

255255
typedef std::vector<JSONCPP_STRING> ChildValues;
@@ -323,7 +323,7 @@ class JSONCPP_DEPRECATED("Use StreamWriterBuilder instead") JSON_API
323323
void unindent();
324324
void writeCommentBeforeValue(const Value& root);
325325
void writeCommentAfterValueOnSameLine(const Value& root);
326-
bool hasCommentForValue(const Value& value);
326+
static bool hasCommentForValue(const Value& value);
327327
static JSONCPP_STRING normalizeEOL(const JSONCPP_STRING& text);
328328

329329
typedef std::vector<JSONCPP_STRING> ChildValues;

0 commit comments

Comments
 (0)