diff options
author | Zdibák Zoltán <zdibakzoltan@gmail.com> | 2018-11-10 20:04:43 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2018-11-11 11:16:31 +0100 |
commit | 18f9abffadec8337561bef16b006e2968f224538 (patch) | |
tree | 357fadd67ea932595e72435fc77bea10a3b212bd /cppuhelper | |
parent | 4d39ec07808276d7dbd2f92a08524f82ab5d715f (diff) |
cppCheck narrowed variableScope rEntry
Change-Id: I04b0b0dc85afdceead9766d8a45e21055074d5fc
Reviewed-on: https://gerrit.libreoffice.org/63248
Tested-by: Jenkins
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'cppuhelper')
-rw-r--r-- | cppuhelper/source/component_context.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cppuhelper/source/component_context.cxx b/cppuhelper/source/component_context.cxx index b64d8b624849..b2c4cf4d5112 100644 --- a/cppuhelper/source/component_context.cxx +++ b/cppuhelper/source/component_context.cxx @@ -400,12 +400,12 @@ void ComponentContext::disposing() t_map::iterator const iEnd( m_map.end() ); for ( ; iPos != iEnd; ++iPos ) { - ContextEntry& rEntry = iPos->second; - // service manager disposed separately if (!m_xSMgr.is() || !iPos->first.startsWith( SMGR_SINGLETON )) { + ContextEntry& rEntry = iPos->second; + if (rEntry.lateInit) { // late init |