diff options
author | Igor Gapchuk <igapchuck@luxoft.com> | 2019-12-16 11:55:27 +0200 |
---|---|---|
committer | Igor Gapchuk <igapchuck@luxoft.com> | 2019-12-16 11:55:27 +0200 |
commit | c874387b10610d059a863f43497779f73aaa26e7 (patch) | |
tree | 5b9c0ebf67d618b757b6869714add1ba73d65013 | |
parent | 47887dfdfad97a82febdcc54ded561128f73baa2 (diff) | |
download | sdl_core-fix/core_crash_on_accesing_the_application_pointer.tar.gz |
fixup! Fix core crash on accesing the application pointer.fix/core_crash_on_accesing_the_application_pointer
-rw-r--r-- | src/components/application_manager/include/application_manager/state_controller_impl.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/components/application_manager/include/application_manager/state_controller_impl.h b/src/components/application_manager/include/application_manager/state_controller_impl.h index 9d659e5356..c6121f5d1d 100644 --- a/src/components/application_manager/include/application_manager/state_controller_impl.h +++ b/src/components/application_manager/include/application_manager/state_controller_impl.h @@ -158,12 +158,8 @@ class StateControllerImpl : public event_engine::EventObserver, applications = accessor.GetData(); } - ApplicationSet::iterator it = applications.begin(); - for (; it != applications.end(); ++it) { - auto app = *it; - if (app) { - func(app); - } + for (const auto& app : applications) { + func(app); } } |