mirror of
https://gitee.com/openharmony/window_window_manager
synced 2024-11-23 15:00:12 +00:00
remove std::optional
Signed-off-by: zhouchengchao <zhouchengchao4@huawei.com>
This commit is contained in:
parent
b463b404c9
commit
7c05831c4c
@ -5352,7 +5352,7 @@ napi_value JsWindow::OnMaximize(napi_env env, napi_callback_info info)
|
||||
int32_t nativeValue;
|
||||
CHECK_NAPI_RETCODE(errCode, WmErrorCode::WM_ERROR_INVALID_PARAM,
|
||||
napi_get_value_int32(env, argv[0], &nativeValue));
|
||||
presentation.emplace(static_cast<MaximizePresentation>(nativeValue));
|
||||
presentation = static_cast<MaximizePresentation>(nativeValue);
|
||||
}
|
||||
if (errCode != WmErrorCode::WM_OK) {
|
||||
return NapiThrowError(env, errCode);
|
||||
|
@ -340,10 +340,7 @@ public:
|
||||
}
|
||||
virtual WMError Recover(uint32_t reason = 0) { return WMError::WM_ERROR_DEVICE_NOT_SUPPORT; };
|
||||
|
||||
virtual WMError Maximize(MaximizePresentation presentation)
|
||||
{
|
||||
return WMError::WM_ERROR_DEVICE_NOT_SUPPORT;
|
||||
}
|
||||
virtual WMError Maximize(MaximizePresentation presentation) { return WMError::WM_ERROR_DEVICE_NOT_SUPPORT;}
|
||||
|
||||
virtual WMError SetWindowMask(const std::vector<std::vector<uint32_t>>& windowMask)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user