diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2021-02-17 11:11:28 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-02-18 15:45:09 +0000 |
commit | f78810b936d9c925a27b17255882b1375cf50ac0 (patch) | |
tree | 3f5fca71f104f8ae9ea51f187ce2f3cf26906502 /src/corelib | |
parent | 49f32b2650b07240e08789c302c5ae7c2ff584bf (diff) |
QJsonObject: Fix operator<=()
We had a copy-paste error there.
Change-Id: Ib1448197ac4f4641c6559f133f41dcf326f210f1
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit a2e23bca0f2b43a26e2e489f83cfe2e521da63b9)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/serialization/qjsonobject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/serialization/qjsonobject.h b/src/corelib/serialization/qjsonobject.h index 1e6cc65227..e477345643 100644 --- a/src/corelib/serialization/qjsonobject.h +++ b/src/corelib/serialization/qjsonobject.h @@ -153,7 +153,7 @@ public: bool operator<(const iterator& other) const { Q_ASSERT(item.o == other.item.o); return item.index < other.item.index; } bool operator<=(const iterator& other) const - { Q_ASSERT(item.o == other.item.o); return item.index < other.item.index; } + { Q_ASSERT(item.o == other.item.o); return item.index <= other.item.index; } bool operator>(const iterator& other) const { return !(*this <= other); } bool operator>=(const iterator& other) const { return !(*this < other); } |