1
0
mirror of https://github.com/nlohmann/json.git synced 2025-08-09 05:22:48 +03:00

🚨 fixed some clang-tidy warnings

This commit is contained in:
Niels Lohmann
2018-10-07 18:39:18 +02:00
parent fa722d5ac3
commit 858e75c4df
29 changed files with 214 additions and 204 deletions

View File

@@ -104,7 +104,10 @@ class lexer
// delete because of pointer members
lexer(const lexer&) = delete;
lexer(lexer&&) noexcept = default;
lexer& operator=(lexer&) = delete;
lexer& operator=(lexer&&) noexcept = default;
~lexer() = default;
private:
/////////////////////
@@ -1208,16 +1211,8 @@ scan_number_done:
{
if (get() == 0xEF)
{
if (get() == 0xBB and get() == 0xBF)
{
// we completely parsed the BOM
return true;
}
else
{
// after reading 0xEF, an unexpected character followed
return false;
}
// check if we completely parse the BOM
return get() == 0xBB and get() == 0xBF;
}
else
{
@@ -1329,5 +1324,5 @@ scan_number_done:
/// the decimal point
const char decimal_point_char = '.';
};
}
}
} // namespace detail
} // namespace nlohmann