mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-21 07:00:23 +08:00
clang-tidy cleanups 2 (#1048)
* [clang-tidy] Add explicit to single argument constructor Found with hicpp-explicit-conversions Signed-off-by: Rosen Penev <rosenp@gmail.com> * [clang-tidy] Fix mismatching declaration Found with readability-inconsistent-declaration-parameter-name Signed-off-by: Rosen Penev <rosenp@gmail.com> * [clang-tidy] Replace {} with = default Found with modernize-use-equals-default Signed-off-by: Rosen Penev <rosenp@gmail.com> * [clang-tidy] Remove redundant .c_Str Found with readability-redundant-string-cstr Signed-off-by: Rosen Penev <rosenp@gmail.com> * [clang-tidy] Simplify boolean expressions Found with readability-simplify-boolean-expr Signed-off-by: Rosen Penev <rosenp@gmail.com> * [clang-tidy] Use std::move Found with modernize-pass-by-value Signed-off-by: Rosen Penev <rosenp@gmail.com> * [clang-tidy] Uppercase literal suffixes Found with hicpp-uppercase-literal-suffix Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -657,7 +657,7 @@ private:
|
||||
Comments& operator=(Comments&& that);
|
||||
bool has(CommentPlacement slot) const;
|
||||
String get(CommentPlacement slot) const;
|
||||
void set(CommentPlacement slot, String s);
|
||||
void set(CommentPlacement slot, String comment);
|
||||
|
||||
private:
|
||||
using Array = std::array<String, numberOfCommentPlacement>;
|
||||
@@ -681,7 +681,7 @@ public:
|
||||
PathArgument();
|
||||
PathArgument(ArrayIndex index);
|
||||
PathArgument(const char* key);
|
||||
PathArgument(const String& key);
|
||||
PathArgument(String key);
|
||||
|
||||
private:
|
||||
enum Kind { kindNone = 0, kindIndex, kindKey };
|
||||
|
Reference in New Issue
Block a user