!73 修改部分文件权限及编码规范问题

Merge pull request !73 from giteeHYC/master
This commit is contained in:
openharmony_ci
2022-03-25 10:24:12 +00:00
committed by Gitee
42 changed files with 8 additions and 5 deletions
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
+1 -1
View File
@@ -30,7 +30,7 @@ enum OHOSLiteErrorCode {
EC_ADDRESS = -4, /* Memory or bus address error */
EC_IOERROR = -5, /* I/O error */
EC_BUSBUSY = -6, /* xxx bus busy */
EC_NORESPONCE = -7, /* Function is no responce */
EC_NORESPONCE = -7, /* Function is no response */
EC_NODEVICE = -8, /* No such device */
EC_INVALID = -9, /* Invalid argument */
EC_BUSY = -10, /* Device or resource busy */
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
View File
View File
View File
View File
View File
+2 -1
View File
@@ -15,6 +15,7 @@
#include "nativeapi_deviceinfo.h"
#include <string>
#include <new>
#include "global.h"
#include "js_async_work.h"
#include "nativeapi_common.h"
@@ -32,7 +33,7 @@ JSIValue ExecuteAsyncWork(const JSIValue thisVal, const JSIValue* args,
if (!NativeapiCommon::IsValidJSIValue(args, argsNum)) {
return undefValue;
}
FuncParams* params = new FuncParams();
FuncParams* params = new(std::nothrow) FuncParams();
if (params == nullptr) {
return undefValue;
}
Executable → Regular
View File
View File
View File
+2 -1
View File
@@ -15,6 +15,7 @@
#include "nativeapi_fs.h"
#include <securec.h>
#include <new>
#include "ability_env.h"
#include "js_async_work.h"
#include "nativeapi_common.h"
@@ -73,7 +74,7 @@ JSIValue ExecuteAsyncWork(const JSIValue thisVal, const JSIValue* args,
if (!NativeapiCommon::IsValidJSIValue(args, argsNum)) {
return undefValue;
}
FuncParams* params = new FuncParams();
FuncParams* params = new(std::nothrow) FuncParams();
if (params == nullptr) {
return undefValue;
}
View File
Executable → Regular
View File
View File
View File
+3 -2
View File
@@ -15,6 +15,7 @@
#include "nativeapi_kv.h"
#include <securec.h>
#include <new>
#include "ability_env.h"
#include "js_async_work.h"
#include "nativeapi_common.h"
@@ -103,7 +104,7 @@ JSIValue ExecuteAsyncWork(const JSIValue thisVal, const JSIValue* args,
if (!NativeapiCommon::IsValidJSIValue(args, argsNum)) {
return undefValue;
}
FuncParams* params = new FuncParams();
FuncParams* params = new(std::nothrow) FuncParams();
if (params == nullptr) {
return undefValue;
}
@@ -277,7 +278,7 @@ JSIValue NativeapiKv::Delete(const JSIValue thisVal, const JSIValue* args, uint8
JSIValue NativeapiKv::Clear(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum)
{
JSIValue undefValue = JSI::CreateUndefined();
FuncParams* params = new FuncParams();
FuncParams* params = new(std::nothrow) FuncParams();
if (params == nullptr) {
return undefValue;
}
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
View File
View File