1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-29 23:01:16 +03:00

🚨 fixed some more linter warnings

This commit is contained in:
Niels Lohmann
2018-10-28 09:15:41 +01:00
parent 7d0dc10169
commit 24946f67f1
5 changed files with 42 additions and 42 deletions

View File

@ -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");