From 8f0f90cbffda62b8bc3283f6987a82d34b78e921 Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Fri, 31 Aug 2018 09:26:45 +0900 Subject: Fix build error Change-Id: Ifa4052b2d076a3b05bf937a6e2aaf2a7d79ebc13 Signed-off-by: Kazumasa Mitsunari --- src/wm_layer_control.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/wm_layer_control.cpp') diff --git a/src/wm_layer_control.cpp b/src/wm_layer_control.cpp index 3f39d65..9ac1ffc 100644 --- a/src/wm_layer_control.cpp +++ b/src/wm_layer_control.cpp @@ -27,6 +27,7 @@ using std::string; using std::vector; +using std::shared_ptr; namespace wm { @@ -358,11 +359,11 @@ WMError LayerControl::visibilityChange(const WMAction& action) if (action.visible != TaskVisible::INVISIBLE) { - ret = this->makeVisible(action.client.get()); + ret = this->makeVisible(action.client); } else { - ret = this->makeInvisible(action.client.get()); + ret = this->makeInvisible(action.client); } return ret; } @@ -525,7 +526,7 @@ void LayerControl::dispatchPropertyChangeEvent(unsigned id, } } -WMError LayerControl::makeVisible(const WMClient* client) +WMError LayerControl::makeVisible(const shared_ptr client) { WMError ret = WMError::FAIL; // Don't check here the client is not nullptr @@ -533,7 +534,7 @@ WMError LayerControl::makeVisible(const WMClient* client) bool contains;// = this->checkBackGround(action.client->role()); if(contains) { - std::shared_ptr l; + shared_ptr l; // Move background from back ground layer for(const auto& wm_layer : this->wm_layers) { @@ -566,7 +567,7 @@ WMError LayerControl::makeVisible(const WMClient* client) return ret; } -WMError LayerControl::makeInvisible(const WMClient* client) +WMError LayerControl::makeInvisible(const shared_ptr client) { WMError ret = WMError::FAIL; // Don't check here the client is not nullptr -- cgit 1.2.3-korg