diff options
author | Artem Nosach <ANosach@luxoft.com> | 2015-04-28 15:43:03 +0300 |
---|---|---|
committer | Artem Nosach <ANosach@luxoft.com> | 2015-06-23 17:05:37 +0300 |
commit | 26c3de0f7351ca3ac1189388330615e61634a25f (patch) | |
tree | 8674aa37fb9e575456a67815edfe516254870cbc | |
parent | 5daa049e1be5432e30e77a0bf5a1851738462ce8 (diff) | |
download | smartdevicelink-26c3de0f7351ca3ac1189388330615e61634a25f.tar.gz |
Fix wrong increment.
2 files changed, 4 insertions, 4 deletions
diff --git a/src/components/application_manager/src/commands/hmi/on_tts_language_change_notification.cc b/src/components/application_manager/src/commands/hmi/on_tts_language_change_notification.cc index 5dba6400b..daa307d62 100644 --- a/src/components/application_manager/src/commands/hmi/on_tts_language_change_notification.cc +++ b/src/components/application_manager/src/commands/hmi/on_tts_language_change_notification.cc @@ -73,8 +73,8 @@ void OnTTSLanguageChangeNotification::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_); diff --git a/src/components/application_manager/src/commands/hmi/on_ui_language_change_notification.cc b/src/components/application_manager/src/commands/hmi/on_ui_language_change_notification.cc index 931a27abc..7e5409999 100644 --- a/src/components/application_manager/src/commands/hmi/on_ui_language_change_notification.cc +++ b/src/components/application_manager/src/commands/hmi/on_ui_language_change_notification.cc @@ -70,8 +70,8 @@ void OnUILanguageChangeNotification::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_); |