diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-03-05 10:50:21 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-03-05 19:58:57 +0000 |
commit | 23c9a2a1e022391b62afd3a69a6f7f9deb8fa3f1 (patch) | |
tree | 0c8e14596e2330d5590e670bff0ea1a9d48d4907 /sd | |
parent | 55212835b5eba797a14430a0268b3bea773e0852 (diff) |
cppcheck: knownConditionTrueFalse
> Condition 'nLevel==1' is always true
Change-Id: If35c47af9bea87dbc93a011f0fb53cf966bf579f
Reviewed-on: https://gerrit.libreoffice.org/34901
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/core/stlpool.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sd/source/core/stlpool.cxx b/sd/source/core/stlpool.cxx index 43f90b3c4e35..29afb37dc523 100644 --- a/sd/source/core/stlpool.cxx +++ b/sd/source/core/stlpool.cxx @@ -256,11 +256,8 @@ void SdStyleSheetPool::CreateLayoutStyleSheets(const OUString& rLayoutName, bool // #i16874# enable kerning by default but only for new documents rSet.Put( SvxAutoKernItem( true, EE_CHAR_PAIRKERNING ) ); - if( nLevel == 1 ) - { - vcl::Font f( GetBulletFont() ); - PutNumBulletItem( pSheet, f ); - } + vcl::Font f( GetBulletFont() ); + PutNumBulletItem( pSheet, f ); } sal_uLong nFontSize = 20; |