tidying up code, no change to logic
This commit is contained in:
parent
e473ac5996
commit
23857da10e
@ -158,14 +158,14 @@ class iterator_input_adapter
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
IteratorType current;
|
mutable IteratorType current;
|
||||||
IteratorType end;
|
const IteratorType end;
|
||||||
bool current_has_been_consumed = false;
|
mutable bool current_has_been_consumed;
|
||||||
|
|
||||||
template<typename BaseInputAdapter, size_t T>
|
template<typename BaseInputAdapter, size_t T>
|
||||||
friend struct wide_string_input_helper;
|
friend struct wide_string_input_helper;
|
||||||
|
|
||||||
bool empty()
|
bool empty() const
|
||||||
{
|
{
|
||||||
if (JSON_HEDLEY_LIKELY(current_has_been_consumed))
|
if (JSON_HEDLEY_LIKELY(current_has_been_consumed))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -5869,14 +5869,14 @@ class iterator_input_adapter
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
IteratorType current;
|
mutable IteratorType current;
|
||||||
IteratorType end;
|
const IteratorType end;
|
||||||
bool current_has_been_consumed = false;
|
mutable bool current_has_been_consumed;
|
||||||
|
|
||||||
template<typename BaseInputAdapter, size_t T>
|
template<typename BaseInputAdapter, size_t T>
|
||||||
friend struct wide_string_input_helper;
|
friend struct wide_string_input_helper;
|
||||||
|
|
||||||
bool empty()
|
bool empty() const
|
||||||
{
|
{
|
||||||
if (JSON_HEDLEY_LIKELY(current_has_been_consumed))
|
if (JSON_HEDLEY_LIKELY(current_has_been_consumed))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user