diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-09-15 14:34:37 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-09-22 16:08:42 +0200 |
commit | 42be5867c1eb105bf57514a0d2595000a9d577a6 (patch) | |
tree | 3c53ce5ea334d8264c480ecdba5235f490f60ea4 /src/plugins/sensors | |
parent | 5f6079010978c5e345b7b1a4248633e210a48351 (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: I46956bfe1feb658f908a039eb1fb6f6bfde79799
Reviewed-by: Zoltan Gera <zoltan.gera@qt.io>
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
Diffstat (limited to 'src/plugins/sensors')
-rw-r--r-- | src/plugins/sensors/android/sensormanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/sensors/android/sensormanager.cpp b/src/plugins/sensors/android/sensormanager.cpp index 96d3cf1c..77a2edc1 100644 --- a/src/plugins/sensors/android/sensormanager.cpp +++ b/src/plugins/sensors/android/sensormanager.cpp @@ -7,7 +7,7 @@ #include <dlfcn.h> Q_DECLARE_JNI_CLASS(AndroidContext, "android/content/Context") -Q_DECLARE_JNI_TYPE(Sensor, "Landroid/hardware/Sensor;") +Q_DECLARE_JNI_CLASS(Sensor, "android/hardware/Sensor") SensorManager::SensorManager() { |