summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-02 09:51:51 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-10-02 14:48:50 +0100
commit33a3368ff513c8996c5eee38c5a64b42a1ffea30 (patch)
tree0b8a23b1f17a31bb061c33289e0add9583727ecc /cui
parent10a17fe72998a951fb4fca9da4467df84700b0a2 (diff)
coverity#1242909 Unused value and const things up
Change-Id: Ib98a81a04f721917ee3c1fdd19d23a37c5d2c481
Diffstat (limited to 'cui')
-rw-r--r--cui/source/tabpages/numfmt.cxx4
1 files changed, 1 insertions, 3 deletions
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<OUString>& 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<OUString>& 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<OUString>& rEnt
for ( ; i < rEntries.size(); ++i )
{
aEntry = rEntries[i];
- aPrivCat=pNumFmtShell->GetCategory4Entry( static_cast<short>(i) );
+ short aPrivCat = pNumFmtShell->GetCategory4Entry( static_cast<short>(i) );
if(aPrivCat!=CAT_TEXT)
{
Color* pPreviewColor = NULL;