remove std::optional

Signed-off-by: zhouchengchao <zhouchengchao4@huawei.com>
This commit is contained in:
zhouchengchao 2024-07-11 21:22:51 +08:00
parent b463b404c9
commit 7c05831c4c
2 changed files with 2 additions and 5 deletions

View File

@ -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);

View File

@ -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)
{