repalce {} with =default for ctors and dtors in cplusplus header file

This commit is contained in:
Gymee
2020-09-22 18:44:02 +08:00
committed by Gitee
parent 47e394f939
commit 9ee3ef5d80
5 changed files with 10 additions and 9 deletions
+2 -2
View File
@@ -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);
+2 -2
View File
@@ -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);
+3 -2
View File
@@ -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);