issue #2129: Warning fix in PluginUtils.h

This commit is contained in:
James Chen 2013-06-20 16:28:20 +08:00
parent f3d08a8b4e
commit c2f0bcf167
1 changed files with 1 additions and 7 deletions

View File

@ -100,13 +100,7 @@ public:
, funcName
, paramCode))
{
jstring strRet = NULL;
if (param != NULL)
{
strRet = (jstring) t.env->CallObjectMethod(pData->jobj, t.methodID, param);
} else {
strRet = (jstring) t.env->CallObjectMethod(pData->jobj, t.methodID);
}
jstring strRet = (jstring)t.env->CallObjectMethod(pData->jobj, t.methodID, param);
ret = PluginJniHelper::jstring2string(strRet).c_str();
t.env->DeleteLocalRef(t.classID);
}