diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-10 09:47:51 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-10 11:36:26 +0000 |
commit | fc19d6af97cbbe6fa69fbb66da32a1972647ebfc (patch) | |
tree | 54650a3ff17ee61ff8ece683fdedb465429f9694 /svx/source/items | |
parent | bba56d9ec704c08099f73adb661e5d7d40721795 (diff) |
coverity#1103656 Logically dead code
Change-Id: I9e55dbfea39abfbe335036af910c3a8bc916d6b9
Diffstat (limited to 'svx/source/items')
-rw-r--r-- | svx/source/items/numfmtsh.cxx | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/svx/source/items/numfmtsh.cxx b/svx/source/items/numfmtsh.cxx index 6e7e7f02e54c..5c4b0af7449d 100644 --- a/svx/source/items/numfmtsh.cxx +++ b/svx/source/items/numfmtsh.cxx @@ -389,16 +389,11 @@ void SvxNumberFormatShell::GetOptions( const OUString& rFormat, if(nFmtKey != NUMBERFORMAT_ENTRY_NOT_FOUND) { - if ( nFmtKey != NUMBERFORMAT_ENTRY_NOT_FOUND ) - { - pFormatter->GetFormatSpecialInfo( nFmtKey, - rThousand, rNegRed, - rPrecision, rLeadingZeroes ); + pFormatter->GetFormatSpecialInfo( nFmtKey, + rThousand, rNegRed, + rPrecision, rLeadingZeroes ); - CategoryToPos_Impl( pFormatter->GetType( nFmtKey ), rCatLbPos ); - } - else - rCatLbPos = CAT_USERDEFINED; + CategoryToPos_Impl( pFormatter->GetType( nFmtKey ), rCatLbPos ); } else { |