mirror of
https://github.com/nlohmann/json.git
synced 2024-08-23 13:32:28 +02:00
🐛 fixed -Weffc++
warnings
This commit is contained in:
parent
b210f2dbf4
commit
c75865d88c
10
src/json.hpp
10
src/json.hpp
|
@ -8532,10 +8532,11 @@ class basic_json
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
primitive_iterator_t& operator++(int)
|
primitive_iterator_t operator++(int)
|
||||||
{
|
{
|
||||||
|
auto result = *this;
|
||||||
m_it++;
|
m_it++;
|
||||||
return *this;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
primitive_iterator_t& operator--()
|
primitive_iterator_t& operator--()
|
||||||
|
@ -8544,10 +8545,11 @@ class basic_json
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
primitive_iterator_t& operator--(int)
|
primitive_iterator_t operator--(int)
|
||||||
{
|
{
|
||||||
|
auto result = *this;
|
||||||
m_it--;
|
m_it--;
|
||||||
return *this;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
primitive_iterator_t& operator+=(difference_type n)
|
primitive_iterator_t& operator+=(difference_type n)
|
||||||
|
|
|
@ -8532,10 +8532,11 @@ class basic_json
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
primitive_iterator_t& operator++(int)
|
primitive_iterator_t operator++(int)
|
||||||
{
|
{
|
||||||
|
auto result = *this;
|
||||||
m_it++;
|
m_it++;
|
||||||
return *this;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
primitive_iterator_t& operator--()
|
primitive_iterator_t& operator--()
|
||||||
|
@ -8544,10 +8545,11 @@ class basic_json
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
primitive_iterator_t& operator--(int)
|
primitive_iterator_t operator--(int)
|
||||||
{
|
{
|
||||||
|
auto result = *this;
|
||||||
m_it--;
|
m_it--;
|
||||||
return *this;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
primitive_iterator_t& operator+=(difference_type n)
|
primitive_iterator_t& operator+=(difference_type n)
|
||||||
|
|
Loading…
Reference in a new issue