summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2024-01-22 13:50:34 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2024-01-29 16:06:47 +0100
commite5074cd3540e165f771aa5bfea36d09553eadc77 (patch)
treee4206ffd834171e3c625ba749a6045e3a5244080 /src/corelib/kernel
parent8f04615bcddbe4d8d00f2f7e977e13f93f90fddb (diff)
QJniArray: add missing post-increment operator
Augment test case. Found during header review. Pick-to: 6.7 Task-number: QTBUG-119952 Change-Id: I326395397167edb05ff1f45f7151614c02b7e7eb Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/corelib/kernel')
-rw-r--r--src/corelib/kernel/qjniarray.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/corelib/kernel/qjniarray.h b/src/corelib/kernel/qjniarray.h
index 0c8dcc395d..434d27e180 100644
--- a/src/corelib/kernel/qjniarray.h
+++ b/src/corelib/kernel/qjniarray.h
@@ -50,6 +50,12 @@ struct QJniArrayIterator
++that.m_index;
return that;
}
+ friend QJniArrayIterator operator++(QJniArrayIterator &that, int) noexcept
+ {
+ auto copy = that;
+ ++that;
+ return copy;
+ }
void swap(QJniArrayIterator &other) noexcept
{