🚨 fixed some more linter warnings
This commit is contained in:
parent
7d0dc10169
commit
24946f67f1
5 changed files with 42 additions and 42 deletions
|
@ -59,7 +59,7 @@ class json_pointer
|
|||
|
||||
@since version 2.0.0
|
||||
*/
|
||||
std::string to_string() const noexcept
|
||||
std::string to_string() const
|
||||
{
|
||||
return std::accumulate(reference_tokens.begin(), reference_tokens.end(),
|
||||
std::string{},
|
||||
|
@ -114,7 +114,7 @@ class json_pointer
|
|||
}
|
||||
|
||||
/// return whether pointer points to the root document
|
||||
bool is_root() const
|
||||
bool is_root() const noexcept
|
||||
{
|
||||
return reference_tokens.empty();
|
||||
}
|
||||
|
@ -566,7 +566,7 @@ class json_pointer
|
|||
{}
|
||||
}
|
||||
|
||||
/// escape "~"" to "~0" and "/" to "~1"
|
||||
/// escape "~" to "~0" and "/" to "~1"
|
||||
static std::string escape(std::string s)
|
||||
{
|
||||
replace_substring(s, "~", "~0");
|
||||
|
|
|
@ -89,7 +89,7 @@
|
|||
|
||||
/*!
|
||||
@brief macro to briefly define a mapping between an enum and JSON
|
||||
@macro NLOHMANN_JSON_SERIALIZE_ENUM
|
||||
@def NLOHMANN_JSON_SERIALIZE_ENUM
|
||||
@since version 3.4.0
|
||||
*/
|
||||
#define NLOHMANN_JSON_SERIALIZE_ENUM(ENUM_TYPE, ...) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue