summaryrefslogtreecommitdiffstats
path: root/src/sql/doc/snippets/code/code.pro
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2024-01-30 15:19:23 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2024-01-31 21:18:48 +0100
commit76cf922980cf0cde7cb03f4bec8f17eab94a5767 (patch)
treefaf43c5e14fef1d62f0251e92b147648c2e06c1b /src/sql/doc/snippets/code/code.pro
parent72f5b35b3d7704db6ef16e4c60751ed8444363be (diff)
JNI: simplify implementation of native function wrappers
When declaring native callback functions with the JNI type system, then we actually register a helper function with variadic arguments, and implement that to forward the arguments to the declared function, which then might use higher-level types as arguments. We deduce those higher-level types through a variadic template, and use std::tuple as well as std::apply to generate the calls. Simplify the implementation by using std::make_tuple, and replace q20:remove_cvref_t with std::decay_t; this is what std::make_tuple uses, and we don't need to maintain functions and arrays as such. Found during 6.7 header review. Pick-to: 6.7 Task-number: QTBUG-119952 Change-Id: I7cd206c6b372c2ec62a10feb5f9253f5607f01a9 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/sql/doc/snippets/code/code.pro')
0 files changed, 0 insertions, 0 deletions