diff --git a/frameworks/wms/lite_proxy_windows_manager.cpp b/frameworks/wms/lite_proxy_windows_manager.cpp index d2d9888cace7071f46120250d318e9b82bfdaa92..8cb7033d4320e364e54aeb8799f10653bfc07dda 100644 --- a/frameworks/wms/lite_proxy_windows_manager.cpp +++ b/frameworks/wms/lite_proxy_windows_manager.cpp @@ -25,8 +25,9 @@ int LiteProxyWindowsManager::Init() { GRAPHIC_LOGI("Init"); LiteWMSClient::GetInstance()->InitLiteWMSClient(); - LiteWMRequestor::GetInstance()->ClientRegister(); - LiteWMRequestor::GetInstance()->GetLayerInfo(); + LiteWMRequestor* requestor = LiteWMRequestor::GetInstance(); + requestor->ClientRegister(); + requestor->GetLayerInfo(); return 0; } diff --git a/services/wms/lite_win.cpp b/services/wms/lite_win.cpp index 2362bf88c40450a9607f9cde27824739f248448f..0cc85e274be52b8513f307768aea9f9b201a05bc 100644 --- a/services/wms/lite_win.cpp +++ b/services/wms/lite_win.cpp @@ -264,9 +264,10 @@ Surface* LiteWindow::GetSurface() void LiteWindow::MoveTo(int16_t x, int16_t y) { GRAPHIC_LOGI("{%d,%d}=>{%d,%d}", config_.rect.GetLeft(), config_.rect.GetTop(), x, y); - LiteWM::GetInstance()->UpdateWindowRegion(this, config_.rect); + LiteWM* liteWM = LiteWM::GetInstance(); + liteWM->UpdateWindowRegion(this, config_.rect); config_.rect.SetPosition(x, y); - LiteWM::GetInstance()->UpdateWindowRegion(this, config_.rect); + liteWM->UpdateWindowRegion(this, config_.rect); } void LiteWindow::Resize(int16_t width, int16_t height)