♻️ change behavior for null FILE*
This commit is contained in:
parent
5a97913e93
commit
d07c454127
@ -64,11 +64,7 @@ class file_input_adapter
|
||||
|
||||
std::char_traits<char>::int_type get_character() noexcept
|
||||
{
|
||||
if (JSON_HEDLEY_LIKELY(m_file != nullptr))
|
||||
{
|
||||
return std::fgetc(m_file);
|
||||
}
|
||||
return std::char_traits<char>::eof(); // LCOV_EXCL_LINE
|
||||
return std::fgetc(m_file);
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
@ -5951,11 +5951,7 @@ class file_input_adapter
|
||||
|
||||
std::char_traits<char>::int_type get_character() noexcept
|
||||
{
|
||||
if (JSON_HEDLEY_LIKELY(m_file != nullptr))
|
||||
{
|
||||
return std::fgetc(m_file);
|
||||
}
|
||||
return std::char_traits<char>::eof(); // LCOV_EXCL_LINE
|
||||
return std::fgetc(m_file);
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user