diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-06-02 08:46:29 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-06-02 08:57:56 +0100 |
commit | 32fc5f1605dc2ce224074e88bea6aa548d450287 (patch) | |
tree | 9a4270e38f76d1e8f8687c66ed8e4887ce663abc /sfx2/source/dialog/templdlg.cxx | |
parent | 8e22cd40ec9f7d97bde49dd4c8593fc5bfb52e29 (diff) |
cppcheck: redundantAssignment
Change-Id: Icca51c730aa361e6a886358c396d4804501139ad
Diffstat (limited to 'sfx2/source/dialog/templdlg.cxx')
-rw-r--r-- | sfx2/source/dialog/templdlg.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx index e7952ca6b7ef..8da087087f0c 100644 --- a/sfx2/source/dialog/templdlg.cxx +++ b/sfx2/source/dialog/templdlg.cxx @@ -1806,12 +1806,11 @@ static OUString getModuleIdentifier( const Reference< XModuleManager2 >& i_xModM sal_Int32 SfxCommonTemplateDialog_Impl::LoadFactoryStyleFilter( SfxObjectShell* i_pObjSh ) { OSL_ENSURE( i_pObjSh, "SfxCommonTemplateDialog_Impl::LoadFactoryStyleFilter(): no ObjectShell" ); - sal_Int32 nFilter = -1; ::comphelper::SequenceAsHashMap aFactoryProps( xModuleManager->getByName( getModuleIdentifier( xModuleManager, i_pObjSh ) ) ); sal_Int32 nDefault = -1; - nFilter = aFactoryProps.getUnpackedValueOrDefault( "ooSetupFactoryStyleFilter", nDefault ); + sal_Int32 nFilter = aFactoryProps.getUnpackedValueOrDefault( "ooSetupFactoryStyleFilter", nDefault ); m_bWantHierarchical = (nFilter & SFXSTYLEBIT_HIERARCHY) != 0; |