From fdfcb1c8de221476c1b855362af7c0236c393c0f Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 1 Feb 2016 11:42:13 +0100 Subject: [PATCH] Fix loop to actually get executed Change-Id: I736868fbaa0783a2ed8be04c99f440f1cb964048 --- bridges/source/jni_uno/jni_info.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bridges/source/jni_uno/jni_info.cxx b/bridges/source/jni_uno/jni_info.cxx index 89e4b0bb5564..a2e2367a98a0 100644 --- a/bridges/source/jni_uno/jni_info.cxx +++ b/bridges/source/jni_uno/jni_info.cxx @@ -877,11 +877,9 @@ JNI_info::JNI_info( void JNI_info::destruct( JNIEnv * jni_env ) { - t_str2type::const_iterator iPos( m_type_map.begin() ); - t_str2type::const_iterator const iEnd( m_type_map.begin() ); - for ( ; iPos != iEnd; ++iPos ) + for (auto & i: m_type_map) { - iPos->second.m_info->destroy( jni_env ); + i.second.m_info->destroy( jni_env ); } if (nullptr != m_XInterface_type_info) {