summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtem Nosach <ANosach@luxoft.com>2015-04-15 18:20:22 +0300
committerArtem Nosach <ANosach@luxoft.com>2015-04-23 15:33:04 +0300
commit192d3cc485d1ae5ea45e001c07a375c9e70ad057 (patch)
treec56d6f40b6f9e5e004dc2a466acb751f0ab3bed9
parent2e21f92f729eac3f5541cca01d917777a8682ac8 (diff)
downloadsdl_core-192d3cc485d1ae5ea45e001c07a375c9e70ad057.tar.gz
Increment iterator before erase element from container.
-rw-r--r--src/components/application_manager/src/commands/hmi/on_vr_language_change_notification.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/application_manager/src/commands/hmi/on_vr_language_change_notification.cc b/src/components/application_manager/src/commands/hmi/on_vr_language_change_notification.cc
index b75cbe33bb..9a146c19e7 100644
--- a/src/components/application_manager/src/commands/hmi/on_vr_language_change_notification.cc
+++ b/src/components/application_manager/src/commands/hmi/on_vr_language_change_notification.cc
@@ -67,8 +67,8 @@ void OnVRLanguageChangeNotification::Run() {
ApplicationManagerImpl::ApplicationListAccessor accessor;
ApplicationManagerImpl::ApplictionSetIt it = accessor.begin();
- for (;accessor.end() != it; ++it) {
- ApplicationSharedPtr app = (*it);
+ for (; accessor.end() != it;) {
+ ApplicationSharedPtr app = *it++;
(*message_)[strings::params][strings::connection_key] = app->app_id();
SendNotificationToMobile(message_);
if (static_cast<int32_t>(app->language())