Rename the arguments
[apps/agl-service-windowmanager.git] / src / wm-client.cpp
index 2542016..753b1d0 100644 (file)
@@ -37,11 +37,11 @@ static const char kKeyrole[] = "role";
 static const char kKeyError[] = "error";
 static const char kKeyErrorDesc[] = "kErrorDescription";
 
-WMClient::WMClient(const string &appid, unsigned layerID, unsigned surfaceID, const string &role)
-    : id(appid), layer(layerID),
+WMClient::WMClient(const string &appid, unsigned layer, unsigned surface, const string &role)
+    : id(appid), layer(layer),
       role2surface(0)
 {
-    role2surface[role] = surfaceID;
+    role2surface[role] = surface;
     for (auto x : kWMEvents)
     {
 #if GTEST_ENABLED
@@ -95,9 +95,9 @@ unsigned WMClient::layerID() const
     return this->layer;
 }
 
-void WMClient::registerLayer(unsigned layerID)
+void WMClient::registerLayer(unsigned layer)
 {
-    this->layer = layerID;
+    this->layer = layer;
 }
 
 bool WMClient::addSurface(const string &role, unsigned surface)
@@ -111,12 +111,12 @@ bool WMClient::addSurface(const string &role, unsigned surface)
     return true;
 }
 
-bool WMClient::removeSurfaceIfExist(unsigned surfaceID)
+bool WMClient::removeSurfaceIfExist(unsigned surface)
 {
     bool ret = false;
     for (auto &x : this->role2surface)
     {
-        if (surfaceID == x.second)
+        if (surface == x.second)
         {
             this->role2surface.erase(x.first);
             ret = true;