From 48112c8b626d3930ca748328189955219b81aad0 Mon Sep 17 00:00:00 2001 From: Marian Klymov Date: Sat, 2 Jun 2018 19:43:31 +0300 Subject: [PATCH] Make several methods static. --- include/json/value.h | 2 +- include/json/writer.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/json/value.h b/include/json/value.h index 06a6c0c..b94aeec 100644 --- a/include/json/value.h +++ b/include/json/value.h @@ -720,7 +720,7 @@ private: const InArgs& in, InArgs::const_iterator& itInArg, PathArgument::Kind kind); - void invalidPath(const JSONCPP_STRING& path, int location); + static void invalidPath(const JSONCPP_STRING& path, int location); Args args_; }; diff --git a/include/json/writer.h b/include/json/writer.h index 7c9ae21..c92d26b 100644 --- a/include/json/writer.h +++ b/include/json/writer.h @@ -249,7 +249,7 @@ private: void unindent(); void writeCommentBeforeValue(const Value& root); void writeCommentAfterValueOnSameLine(const Value& root); - bool hasCommentForValue(const Value& value); + static bool hasCommentForValue(const Value& value); static JSONCPP_STRING normalizeEOL(const JSONCPP_STRING& text); typedef std::vector ChildValues; @@ -323,7 +323,7 @@ private: void unindent(); void writeCommentBeforeValue(const Value& root); void writeCommentAfterValueOnSameLine(const Value& root); - bool hasCommentForValue(const Value& value); + static bool hasCommentForValue(const Value& value); static JSONCPP_STRING normalizeEOL(const JSONCPP_STRING& text); typedef std::vector ChildValues;