mirror of https://github.com/axmolengine/axmol.git
issue #2129: Warning fix in PluginUtils.h
This commit is contained in:
parent
f3d08a8b4e
commit
c2f0bcf167
|
@ -100,13 +100,7 @@ public:
|
||||||
, funcName
|
, funcName
|
||||||
, paramCode))
|
, paramCode))
|
||||||
{
|
{
|
||||||
jstring strRet = NULL;
|
jstring strRet = (jstring)t.env->CallObjectMethod(pData->jobj, t.methodID, param);
|
||||||
if (param != NULL)
|
|
||||||
{
|
|
||||||
strRet = (jstring) t.env->CallObjectMethod(pData->jobj, t.methodID, param);
|
|
||||||
} else {
|
|
||||||
strRet = (jstring) t.env->CallObjectMethod(pData->jobj, t.methodID);
|
|
||||||
}
|
|
||||||
ret = PluginJniHelper::jstring2string(strRet).c_str();
|
ret = PluginJniHelper::jstring2string(strRet).c_str();
|
||||||
t.env->DeleteLocalRef(t.classID);
|
t.env->DeleteLocalRef(t.classID);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue