From fc19d6af97cbbe6fa69fbb66da32a1972647ebfc Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 10 Mar 2014 09:47:51 +0000 Subject: coverity#1103656 Logically dead code Change-Id: I9e55dbfea39abfbe335036af910c3a8bc916d6b9 --- svx/source/items/numfmtsh.cxx | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'svx') 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 { -- cgit