🐛 fixed -Weffc++
warnings
This commit is contained in:
parent
b210f2dbf4
commit
c75865d88c
2 changed files with 12 additions and 8 deletions
10
src/json.hpp
10
src/json.hpp
|
@ -8532,10 +8532,11 @@ class basic_json
|
|||
return *this;
|
||||
}
|
||||
|
||||
primitive_iterator_t& operator++(int)
|
||||
primitive_iterator_t operator++(int)
|
||||
{
|
||||
auto result = *this;
|
||||
m_it++;
|
||||
return *this;
|
||||
return result;
|
||||
}
|
||||
|
||||
primitive_iterator_t& operator--()
|
||||
|
@ -8544,10 +8545,11 @@ class basic_json
|
|||
return *this;
|
||||
}
|
||||
|
||||
primitive_iterator_t& operator--(int)
|
||||
primitive_iterator_t operator--(int)
|
||||
{
|
||||
auto result = *this;
|
||||
m_it--;
|
||||
return *this;
|
||||
return result;
|
||||
}
|
||||
|
||||
primitive_iterator_t& operator+=(difference_type n)
|
||||
|
|
|
@ -8532,10 +8532,11 @@ class basic_json
|
|||
return *this;
|
||||
}
|
||||
|
||||
primitive_iterator_t& operator++(int)
|
||||
primitive_iterator_t operator++(int)
|
||||
{
|
||||
auto result = *this;
|
||||
m_it++;
|
||||
return *this;
|
||||
return result;
|
||||
}
|
||||
|
||||
primitive_iterator_t& operator--()
|
||||
|
@ -8544,10 +8545,11 @@ class basic_json
|
|||
return *this;
|
||||
}
|
||||
|
||||
primitive_iterator_t& operator--(int)
|
||||
primitive_iterator_t operator--(int)
|
||||
{
|
||||
auto result = *this;
|
||||
m_it--;
|
||||
return *this;
|
||||
return result;
|
||||
}
|
||||
|
||||
primitive_iterator_t& operator+=(difference_type n)
|
||||
|
|
Loading…
Reference in a new issue