diff options
| author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-09-15 14:33:50 +0200 |
|---|---|---|
| committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-09-20 00:05:39 +0200 |
| commit | 7f4cdb9941ee662b85abe4347a5b818e5ae4077e (patch) | |
| tree | 755713a1b8c24b2e005fb9c974de42d2bcce9561 /src/plugins/platforms/android/qandroidplatformintegration.cpp | |
| parent | ece7b9430d35564186975dbaf20660ad83475748 (diff) | |
JNI: replace TYPE declarations with CLASS declarations
That we have two macros to declare a C++ type to represent a Java class
is confusing. The TYPE macro as of now allows us to declare array types,
but with QJniArray we won't need that anymore, and can just use Class[]
as the type instead. Changing that will be a follow-up commit; for now,
get rid of TYPE-usages to declare regular classes.
Change-Id: Iea0a9548772ca701148442412cf6ad567583213f
Reviewed-by: Zoltan Gera <zoltan.gera@qt.io>
Reviewed-by: Petri Virkkunen <petri.virkkunen@qt.io>
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Diffstat (limited to 'src/plugins/platforms/android/qandroidplatformintegration.cpp')
| -rw-r--r-- | src/plugins/platforms/android/qandroidplatformintegration.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/android/qandroidplatformintegration.cpp b/src/plugins/platforms/android/qandroidplatformintegration.cpp index 9f0b1c8b2f6..7e509ecf3a0 100644 --- a/src/plugins/platforms/android/qandroidplatformintegration.cpp +++ b/src/plugins/platforms/android/qandroidplatformintegration.cpp @@ -59,7 +59,7 @@ static bool m_running = false; Q_DECLARE_JNI_CLASS(QtNative, "org/qtproject/qt/android/QtNative") Q_DECLARE_JNI_CLASS(Display, "android/view/Display") -Q_DECLARE_JNI_TYPE(List, "Ljava/util/List;") +Q_DECLARE_JNI_CLASS(List, "java/util/List") namespace { |
