diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-02-01 11:42:13 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-02-01 11:42:13 +0100 |
commit | fdfcb1c8de221476c1b855362af7c0236c393c0f (patch) | |
tree | 8542d2bff2354c558ab981e58d6d8fff6b413172 /bridges | |
parent | e6aaf64cfc378d0daa0709c40c85ee1e9c0fd151 (diff) |
Fix loop to actually get executed
Change-Id: I736868fbaa0783a2ed8be04c99f440f1cb964048
Diffstat (limited to 'bridges')
-rw-r--r-- | bridges/source/jni_uno/jni_info.cxx | 6 |
1 files 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) { |