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>
This commit is contained in:
Zdibák Zoltán 2018-11-10 20:04:43 +01:00 committed by Markus Mohrhard
parent 4d39ec0780
commit 18f9abffad

View file

@ -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