Skip to content

Commit

Permalink
use proper pointer type
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Bagg <[email protected]>
  • Loading branch information
mzanetti authored and jbagg committed May 22, 2023
1 parent 24debe3 commit 3f56503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion androidnsd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ QZeroConfPrivate::QZeroConfPrivate(QZeroConf *parent)

// Passing "this" as ID down to Java so we can access "this" in callbacks.
// There seems to be no straight forward way to match the "thiz" pointer from JNI calls to our pointer of the Java class
nsdManager = QAndroidJniObject("qtzeroconf/QZeroConfNsdManager", "(ILandroid/content/Context;)V", reinterpret_cast<int>(this), QtAndroid::androidActivity().object());
nsdManager = QAndroidJniObject("qtzeroconf/QZeroConfNsdManager", "(ILandroid/content/Context;)V", reinterpret_cast<intptr_t>(this), QtAndroid::androidActivity().object());
if (nsdManager.isValid()) {
jclass objectClass = env->GetObjectClass(nsdManager.object<jobject>());
env->RegisterNatives(objectClass, methods, sizeof(methods) / sizeof(methods[0]));
Expand Down

0 comments on commit 3f56503

Please sign in to comment.