未验证 提交 81999aeb 编写于 作者: O openharmony_ci 提交者: Gitee

!709 接口返回值错误

Merge pull request !709 from Mupceet/setparam
...@@ -32,7 +32,7 @@ namespace system { ...@@ -32,7 +32,7 @@ namespace system {
bool SetParameter(const std::string& key, const std::string& value) bool SetParameter(const std::string& key, const std::string& value)
{ {
int ret = SystemSetParameter(key.c_str(), value.c_str()); int ret = SystemSetParameter(key.c_str(), value.c_str());
return (ret == 0) ? EC_SUCCESS : EC_FAILURE; return (ret == 0) ? true : false;
} }
template<typename T> template<typename T>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册