summaryrefslogtreecommitdiff
path: root/svx/source/items
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-10 09:47:51 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-10 11:36:26 +0000
commitfc19d6af97cbbe6fa69fbb66da32a1972647ebfc (patch)
tree54650a3ff17ee61ff8ece683fdedb465429f9694 /svx/source/items
parentbba56d9ec704c08099f73adb661e5d7d40721795 (diff)
coverity#1103656 Logically dead code
Change-Id: I9e55dbfea39abfbe335036af910c3a8bc916d6b9
Diffstat (limited to 'svx/source/items')
-rw-r--r--svx/source/items/numfmtsh.cxx13
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
{