mirror of
https://gitee.com/openharmony/global_i18n
synced 2024-11-23 15:10:32 +00:00
change return value from const char pointer to string
Signed-off-by: sunyaozu <sunyaozu@huawei.com>
This commit is contained in:
parent
06fb6dd45e
commit
60086407c4
@ -103,7 +103,8 @@ std::string VariableConvertor::GetString(napi_env &env, napi_value &value, int32
|
||||
code = 1;
|
||||
return "";
|
||||
}
|
||||
return buf.data();
|
||||
std::string result(buf.data());
|
||||
return result;
|
||||
}
|
||||
|
||||
bool VariableConvertor::GetStringArrayFromJsParam(napi_env env, napi_value &jsArray, const std::string& valueName,
|
||||
|
Loading…
Reference in New Issue
Block a user