aboutsummaryrefslogtreecommitdiffstats
path: root/src/wm_client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wm_client.cpp')
-rw-r--r--src/wm_client.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/wm_client.cpp b/src/wm_client.cpp
index f05bd17..72517bd 100644
--- a/src/wm_client.cpp
+++ b/src/wm_client.cpp
@@ -92,10 +92,11 @@ unsigned WMClient::surfaceID(const string &role) const
std::string WMClient::role(unsigned surface) const
{
- for(const auto& [key, value] : this->role2surface)
+ for(const auto& x : this->role2surface)
{
- if(value == surface){
- return key;
+ if(x.second == surface)
+ {
+ return x.first;
}
}
return std::string("");
@@ -150,6 +151,7 @@ bool WMClient::removeRole(const string &role)
return ret;
}
+#ifndef GTEST_ENABLED
bool WMClient::subscribe(afb_req req, const string &evname)
{
if(evname != kKeyError){
@@ -182,6 +184,7 @@ void WMClient::emitError(WM_CLIENT_ERROR_EVENT ev)
HMI_DEBUG("wm", "afb_event_push failed: %m");
}
}
+#endif
void WMClient::dumpInfo()
{