mirror of
https://github.com/openharmony/utils_native_lite.git
synced 2026-07-21 01:35:27 -04:00
repalce {} with =default for ctors and dtors in cplusplus header file
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user