summaryrefslogtreecommitdiffstats
path: root/src/corelib/text/qstring.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2024-12-28 05:14:55 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2025-03-06 22:39:57 +0100
commit5342046ff87df657935df7277e8ca732e729b6e1 (patch)
tree0b82e58ab218b3b4ff0cdc9a45a0ed18253633cd /src/corelib/text/qstring.cpp
parent6d1384034deb681c1c4a656a1582f3e1606b1c1a (diff)
JNI: refactor conversion logic into Traits struct
This disentangles and simplifies the code a lot, making it each type's own responsibility to implement the conversion to and from JNI. In order to be able to specialize the Traits for any type with a certain predicate being true (e.g. all arrays, or containers usable via QJniArray) we have to introduce a second, defaulted template parameter through which we can SFINAE-in relevant specializations. LocalFrame's convertTo/FromJni now become thin wrappers around the implementation in the Traits specialization, just taking care of some special cases for local reference frame management. Change-Id: Ic0e8af89f9e3d9a606b67d5238c1c793114ac38f Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Diffstat (limited to 'src/corelib/text/qstring.cpp')
0 files changed, 0 insertions, 0 deletions