tidying up code, no change to logic

This commit is contained in:
Luca 2022-04-14 14:35:55 +02:00
parent 358970e3d0
commit f4a8d2d97f
2 changed files with 8 additions and 8 deletions

View File

@ -158,14 +158,14 @@ class iterator_input_adapter
}
private:
IteratorType current;
IteratorType end;
bool current_has_been_consumed = false;
mutable IteratorType current;
const IteratorType end;
mutable bool current_has_been_consumed;
template<typename BaseInputAdapter, size_t T>
friend struct wide_string_input_helper;
bool empty()
bool empty() const
{
if (JSON_HEDLEY_LIKELY(current_has_been_consumed))
{

View File

@ -5568,14 +5568,14 @@ class iterator_input_adapter
}
private:
IteratorType current;
IteratorType end;
bool current_has_been_consumed = false;
mutable IteratorType current;
const IteratorType end;
mutable bool current_has_been_consumed;
template<typename BaseInputAdapter, size_t T>
friend struct wide_string_input_helper;
bool empty()
bool empty() const
{
if (JSON_HEDLEY_LIKELY(current_has_been_consumed))
{