diff options
| author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2024-07-14 12:40:53 +0200 |
|---|---|---|
| committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2024-07-19 22:16:37 +0200 |
| commit | 3d5af4b912e60beb791f874c2dbfef5597b9aad7 (patch) | |
| tree | 344fba86ebd6b196109f68c8e461c6c4068de00d /src/corelib/io/qdebug.cpp | |
| parent | 82b2c51c3aec148c890d732978ca4a881e5c6f82 (diff) | |
QJniArray: implement operator-> for the iterator
The QJniArray doesn't store values, so at() always returns a temporary.
As we cannot hand out a pointer to a temporary, use a wrapper reference
struct that stores the value and implements operator->. It's all inline,
so we can move it out in the future to return mutable references, if we
ever want to enable write access to QJniArray elements.
Pick-to: 6.8
Change-Id: I3962df6160db8c5b573d47ebb7975864f8ea7a8b
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/corelib/io/qdebug.cpp')
0 files changed, 0 insertions, 0 deletions
