From 33a3368ff513c8996c5eee38c5a64b42a1ffea30 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 2 Oct 2014 09:51:51 +0100 Subject: coverity#1242909 Unused value and const things up Change-Id: Ib98a81a04f721917ee3c1fdd19d23a37c5d2c481 --- cui/source/tabpages/numfmt.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cui') diff --git a/cui/source/tabpages/numfmt.cxx b/cui/source/tabpages/numfmt.cxx index 19d42733f858..4121b72341d7 100644 --- a/cui/source/tabpages/numfmt.cxx +++ b/cui/source/tabpages/numfmt.cxx @@ -833,7 +833,6 @@ void SvxNumberFormatTabPage::FillFormatListBox_Impl( std::vector& rEnt vcl::Font aFont=m_pLbCategory->GetFont(); size_t i = 0; short nTmpCatPos; - short aPrivCat; m_pLbFormat->Clear(); m_pLbFormat->SetUpdateMode( false ); @@ -860,7 +859,6 @@ void SvxNumberFormatTabPage::FillFormatListBox_Impl( std::vector& rEnt aTmpString=aEntry; else aTmpString = pNumFmtShell->GetStandardName(); - aPrivCat=pNumFmtShell->GetCategory4Entry(0); m_pLbFormat->InsertFontEntry( aTmpString, aFont ); break; @@ -872,7 +870,7 @@ void SvxNumberFormatTabPage::FillFormatListBox_Impl( std::vector& rEnt for ( ; i < rEntries.size(); ++i ) { aEntry = rEntries[i]; - aPrivCat=pNumFmtShell->GetCategory4Entry( static_cast(i) ); + short aPrivCat = pNumFmtShell->GetCategory4Entry( static_cast(i) ); if(aPrivCat!=CAT_TEXT) { Color* pPreviewColor = NULL; -- cgit