forked from jbagg/QtZeroConf
Compare commits
2 Commits
master
...
fix_warnin
Author | SHA1 | Date | |
---|---|---|---|
2fbb52b708 | |||
12d2ffd1fe |
@ -60,7 +60,11 @@ QZeroConfPrivate::QZeroConfPrivate(QZeroConf *parent)
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||
nsdManager = QAndroidJniObject("qtzeroconf/QZeroConfNsdManager", "(JLandroid/content/Context;)V", reinterpret_cast<quint64>(this), QtAndroid::androidActivity().object());
|
||||
#else
|
||||
nsdManager = QAndroidJniObject("qtzeroconf/QZeroConfNsdManager", "(JLandroid/content/Context;)V", reinterpret_cast<quint64>(this), QNativeInterface::QAndroidApplication::context());
|
||||
nsdManager = QAndroidJniObject("qtzeroconf/QZeroConfNsdManager", "(JLandroid/content/Context;)V", reinterpret_cast<quint64>(this), QNativeInterface::QAndroidApplication::context()
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6, 7, 0))
|
||||
.object<jobject>()
|
||||
#endif
|
||||
);
|
||||
#endif
|
||||
if (nsdManager.isValid()) {
|
||||
jclass objectClass = env->GetObjectClass(nsdManager.object<jobject>());
|
||||
|
Reference in New Issue
Block a user