aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Strømme <christian.stromme@theqtcompany.com>2014-12-03 17:49:01 +0100
committerChristian Stromme <christian.stromme@theqtcompany.com>2015-01-11 23:09:31 +0100
commit211e92a604bb617ed08ef6324adb191fc7221ef6 (patch)
treef6aec88d4c4c389419751a3e5e363e0ed6a41ee9 /src
parente369af5feaaa769aacc8513301300df47babfbc2 (diff)
Add missing method
The method callObjectMethod didn't have a jcharArray convenience method, as the equivalent static method has. [ChangeLog][QAndroidJniObject] Added the missing jcharArray variant of the callObjectMethod. Change-Id: Ic5168f4604d7abe11788c18cba765d3660a91ed3 Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r--src/androidextras/jni/qandroidjniobject.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/androidextras/jni/qandroidjniobject.cpp b/src/androidextras/jni/qandroidjniobject.cpp
index 21c2c73..ff1d563 100644
--- a/src/androidextras/jni/qandroidjniobject.cpp
+++ b/src/androidextras/jni/qandroidjniobject.cpp
@@ -927,6 +927,12 @@ QAndroidJniObject QAndroidJniObject::callObjectMethod<jbyteArray>(const char *me
}
template <>
+QAndroidJniObject QAndroidJniObject::callObjectMethod<jcharArray>(const char *methodName) const
+{
+ return d->callObjectMethod(methodName, "()[C");
+}
+
+template <>
QAndroidJniObject QAndroidJniObject::callObjectMethod<jshortArray>(const char *methodName) const
{
return d->callObjectMethod(methodName, "()[S");