summaryrefslogtreecommitdiff
path: root/unity-shared
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2015-02-09 18:44:29 +0100
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2015-02-09 18:44:29 +0100
commit3b3ed8000d986d413a6e9a4523b8a57eba526751 (patch)
tree45f54a68936ceb58d69b2e01cee41ee33c693233 /unity-shared
parent9cd387895886b5015ce3258897e6f81b702c2c21 (diff)
parentfa8d4d20017ed681435c7c8ddc8a0f180bde786f (diff)
Merging with lp:~3v1n0/unity/lim-everywhere
(bzr r3899.4.7)
Diffstat (limited to 'unity-shared')
-rw-r--r--unity-shared/MenuManager.cpp6
-rw-r--r--unity-shared/UBusWrapper.cpp6
2 files changed, 4 insertions, 8 deletions
diff --git a/unity-shared/MenuManager.cpp b/unity-shared/MenuManager.cpp
index e084001c6..c5eccab8f 100644
--- a/unity-shared/MenuManager.cpp
+++ b/unity-shared/MenuManager.cpp
@@ -165,10 +165,8 @@ struct Manager::Impl : sigc::trackable
{
for (auto it = entry_actions_.begin(); it != entry_actions_.end();)
{
- auto rm_it = it;
- ++it;
- key_grabber_->RemoveAction(*rm_it->second);
- entry_actions_.erase(rm_it);
+ key_grabber_->RemoveAction(*it->second);
+ it = entry_actions_.erase(it);
}
}
diff --git a/unity-shared/UBusWrapper.cpp b/unity-shared/UBusWrapper.cpp
index 3f1699923..a66d4b5fd 100644
--- a/unity-shared/UBusWrapper.cpp
+++ b/unity-shared/UBusWrapper.cpp
@@ -34,10 +34,8 @@ UBusManager::~UBusManager()
{
for (auto it = connection_ids_.begin(); it != connection_ids_.end();)
{
- auto tmp_it = it;
- ++it;
- server->UnregisterInterest(*tmp_it);
- connection_ids_.erase(tmp_it);
+ server->UnregisterInterest(*it);
+ it = connection_ids_.erase(it);
}
}