diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-01-26 09:22:02 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-01-26 09:22:02 +0000 |
commit | cea69b77976783d1991ce9deae20db6bac2eb7fe (patch) | |
tree | 8b43136514e565fa144eb2f661939d3145ef0fe5 | |
parent | 628eb9b7e783023c49191178c181c39770fccc62 (diff) |
WaE: gcc 4.6.0 various warnings
-rw-r--r-- | basctl/source/basicide/localizationmgr.cxx | 1 | ||||
-rw-r--r-- | cui/source/tabpages/numfmt.cxx | 11 |
2 files changed, 2 insertions, 10 deletions
diff --git a/basctl/source/basicide/localizationmgr.cxx b/basctl/source/basicide/localizationmgr.cxx index 4ff1d6406..c5eeaa9eb 100644 --- a/basctl/source/basicide/localizationmgr.cxx +++ b/basctl/source/basicide/localizationmgr.cxx @@ -749,6 +749,7 @@ void LocalizationMgr::handleRemoveLocales( Sequence< Locale > aLocaleSeq ) DBG_ASSERT( bConsistant, "LocalizationMgr::handleRemoveLocales(): sequence contains unsupported locales" ); + (void)bConsistant; } void LocalizationMgr::handleSetDefaultLocale( Locale aLocale ) diff --git a/cui/source/tabpages/numfmt.cxx b/cui/source/tabpages/numfmt.cxx index a2454b75b..2ec19a24e 100644 --- a/cui/source/tabpages/numfmt.cxx +++ b/cui/source/tabpages/numfmt.cxx @@ -963,18 +963,10 @@ void SvxNumberFormatTabPage::UpdateOptions_Impl( BOOL bCheckCatChange /*= FALSE* USHORT nZeroes = 0; BOOL bNegRed = FALSE; BOOL bThousand = FALSE; - short nTmpCatPos; USHORT nCurrencyPos =aLbCurrency.GetSelectEntryPos(); if(bOneAreaFlag) - { - nTmpCatPos=nFixedCategory; nCurCategory=nFixedCategory; - } - else - { - nTmpCatPos=nCurCategory; - } pNumFmtShell->GetOptions( theFormat, @@ -1782,7 +1774,6 @@ void SvxNumberFormatTabPage::FillCurrencyBox() SvStringsDtor aList; NfShCurrencyEntries rEntries; XubString* pEntry = NULL; - USHORT nPos=0; USHORT nSelPos=0; pNumFmtShell->GetCurrencySymbols( aList, &nSelPos); @@ -1790,7 +1781,7 @@ void SvxNumberFormatTabPage::FillCurrencyBox() for(USHORT i=1;i<aList.Count();i++) { pEntry=aList[i]; - nPos=aLbCurrency.InsertEntry( *pEntry); + aLbCurrency.InsertEntry( *pEntry); } aLbCurrency.SelectEntryPos(nSelPos); } |