summaryrefslogtreecommitdiff
path: root/src/components/application_manager/src/hmi_language_handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/application_manager/src/hmi_language_handler.cc')
-rw-r--r--src/components/application_manager/src/hmi_language_handler.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/components/application_manager/src/hmi_language_handler.cc b/src/components/application_manager/src/hmi_language_handler.cc
index 750755478e..776595a040 100644
--- a/src/components/application_manager/src/hmi_language_handler.cc
+++ b/src/components/application_manager/src/hmi_language_handler.cc
@@ -31,6 +31,7 @@
*/
#include "application_manager/hmi_language_handler.h"
+
#include "application_manager/application_manager.h"
#include "application_manager/hmi_capabilities.h"
#include "application_manager/message_helper.h"
@@ -119,7 +120,7 @@ hmi_apis::Common_Language::eType HMILanguageHandler::get_language_for(
return Common_Language::INVALID_ENUM;
}
-void HMILanguageHandler::on_event(const event_engine::Event& event) {
+void HMILanguageHandler::HandleOnEvent(const event_engine::Event& event) {
SDL_LOG_AUTO_TRACE();
smart_objects::SmartObject msg = event.smart_object();
switch (event.id()) {
@@ -263,10 +264,11 @@ void HMILanguageHandler::VerifyWithPersistedLanguages() {
const ApplicationSet& accessor =
application_manager_.applications().GetData();
+
ApplicationSetIt it = accessor.begin();
for (; accessor.end() != it;) {
- ApplicationConstSharedPtr app = *it++;
-
+ ApplicationConstSharedPtr app = *it;
+ ++it;
SDL_LOG_INFO("Application with app_id "
<< app->app_id()
<< " will be unregistered because of "