summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
b7db247)
Depending on the SDK, warning for C++1z is emitted.
Fix not to use the following idiom
for(auto [key, value] : map)
Change-Id: Ie13a46967825b9d41c0bd63abb6cd484710dd55d
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
std::string WMClient::role(unsigned surface) 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("");
}
}
return std::string("");
bool WMClient::subscribe(afb_req req, const string &evname)
{
if(evname != kKeyError){
bool WMClient::subscribe(afb_req req, const string &evname)
{
if(evname != kKeyError){
HMI_DEBUG("wm", "afb_event_push failed: %m");
}
}
HMI_DEBUG("wm", "afb_event_push failed: %m");
}
}
void WMClient::dumpInfo()
{
void WMClient::dumpInfo()
{
bool removeSurfaceIfExist(unsigned surface);
bool removeRole(const std::string& role);
bool removeSurfaceIfExist(unsigned surface);
bool removeRole(const std::string& role);
bool subscribe(afb_req req, const std::string &event_name);
void emitError(WM_CLIENT_ERROR_EVENT ev);
bool subscribe(afb_req req, const std::string &event_name);
void emitError(WM_CLIENT_ERROR_EVENT ev);