mirror of https://github.com/axmolengine/axmol.git
improve the code. fix network error
This commit is contained in:
parent
00b7e98c89
commit
3230ca154d
|
@ -183,8 +183,6 @@ long getCharacterCountInUTF8String(const std::string& utf8)
|
|||
return getUTF8StringLength((const UTF8*)utf8.c_str());
|
||||
}
|
||||
|
||||
|
||||
|
||||
} //namespace StringUtils {
|
||||
|
||||
|
||||
|
|
|
@ -585,9 +585,9 @@ private:
|
|||
std::string strValue = "";
|
||||
if (!cocos2d::StringUtils::getUTFCharsFromJavaEnv(env, jstr, strValue))
|
||||
{
|
||||
ret = strdup(strValue.c_str());
|
||||
strValue = "";
|
||||
}
|
||||
|
||||
ret = strdup(strValue.c_str());
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue