提交 f2a75466 编写于 作者: O openharmony_ci 提交者: Gitee

!22 【轻量级 PR】:repalce {} with =default for ctors and dtors in cplusplus header file

Merge pull request !22 from Gymee/N/A
......@@ -32,8 +32,8 @@ public:
static void SuccessCallBack(const JSIValue thisVal, const JSIValue args, JSIValue jsiValue);
static bool IsValidJSIValue(const JSIValue* args, uint8_t argsNum);
private:
NativeapiCommon() {}
~NativeapiCommon() {}
NativeapiCommon() = default;
~NativeapiCommon() = default;
};
}
}
......
......@@ -22,8 +22,8 @@ namespace OHOS {
namespace ACELite {
class NativeapiDeviceInfo {
public:
NativeapiDeviceInfo() {}
~NativeapiDeviceInfo() {}
NativeapiDeviceInfo() = default;
~NativeapiDeviceInfo() = default;
static JSIValue GetDeviceInfo(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum);
};
......
......@@ -49,7 +49,7 @@ void ExecuteGetInfo(void* data)
}
JSIValue args = params->args;
JSIValue thisVal = params->thisVal;
char* brand = GetBrand();
char* brand = GetBrand();
if (brand == nullptr) {
NativeapiCommon::FailCallBack(args, thisVal, ERROR_CODE_GENERAL);
JSI::ReleaseValueList(args, thisVal, ARGS_END);
......
......@@ -23,8 +23,8 @@ namespace OHOS {
namespace ACELite {
class NativeapiFs {
public:
NativeapiFs() {}
~NativeapiFs() {}
NativeapiFs() = default;
~NativeapiFs() = default;
static JSIValue MoveFile(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum);
static JSIValue CopyFile(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum);
......
......@@ -22,8 +22,9 @@ namespace OHOS {
namespace ACELite {
class NativeapiKv {
public:
NativeapiKv() {}
~NativeapiKv() {}
NativeapiKv() = default;
~NativeapiKv() = default;
static JSIValue Get(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum);
static JSIValue Set(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum);
static JSIValue Delete(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册