summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qdebug.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2024-07-14 16:27:01 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2024-07-19 22:17:05 +0200
commit8f04defa1e3973faec19a9cb1ab9bbf1ea7fb031 (patch)
treee91f31763a9fea3eb5b521e444f0e96886a00b80 /src/corelib/io/qdebug.cpp
parent71be7834e67216010dc74ed855dc7b513e302f1a (diff)
JNI: Constrain QJniArray::toContainer to compatible target containers
We can populate a container with the contents of the Java array as long as the element types are convertible without narrowing (taking various special cases into account, such as jstring to QString). The container has to be either support emplace_back, or be a contiguous container if a primitive element type. The template helpers need to be in QJniArrayBase in order for qdoc to accept the input. Add test coverage, including static compile time tests. Pick-to: 6.8 Change-Id: Id9372deed5cf33446ee1969dc284a88991db2aee Reviewed-by: Petri Virkkunen <petri.virkkunen@qt.io> Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/corelib/io/qdebug.cpp')
0 files changed, 0 insertions, 0 deletions