diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-01-27 11:22:34 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-01-27 16:55:21 +0000 |
commit | 9234fd2ca59aea19602e416b911aa7c712636340 (patch) | |
tree | 462fe4e121a3c054b4a75a80d2736964e9cdcd40 | |
parent | a61c4d548af446ffe94b85d59be08f18a4a5d37f (diff) |
WaE: gcc 4.6.0 various warnings
-rw-r--r-- | starmath/source/smdetect.cxx | 5 | ||||
-rw-r--r-- | sw/source/core/edit/edglss.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/frmedt/feflyole.cxx | 1 | ||||
-rw-r--r-- | sw/source/core/view/pagepreviewlayout.cxx | 2 | ||||
-rw-r--r-- | sw/source/filter/basflt/iodetect.cxx | 7 | ||||
-rw-r--r-- | sw/source/filter/ww8/wrtw8num.cxx | 2 | ||||
-rw-r--r-- | sw/source/filter/ww8/ww8par.cxx | 2 | ||||
-rw-r--r-- | sw/source/filter/ww8/ww8par3.cxx | 1 | ||||
-rw-r--r-- | sw/source/ui/dbui/mmoutputpage.cxx | 3 | ||||
-rw-r--r-- | sw/source/ui/docvw/SidebarWin.cxx | 8 | ||||
-rw-r--r-- | sw/source/ui/table/tabledlg.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/utlui/viewlayoutctrl.cxx | 2 |
12 files changed, 7 insertions, 30 deletions
diff --git a/starmath/source/smdetect.cxx b/starmath/source/smdetect.cxx index e4f11c0c1f..e936de56c5 100644 --- a/starmath/source/smdetect.cxx +++ b/starmath/source/smdetect.cxx @@ -116,7 +116,6 @@ SmFilterDetect::~SmFilterDetect() // now some parameters that can already be in the array, but may be overwritten or new inserted here // remember their indices in the case new values must be added to the array sal_Int32 nPropertyCount = lDescriptor.getLength(); - sal_Int32 nIndexOfFilterName = -1; sal_Int32 nIndexOfInputStream = -1; sal_Int32 nIndexOfContent = -1; sal_Int32 nIndexOfReadOnlyFlag = -1; @@ -145,10 +144,6 @@ SmFilterDetect::~SmFilterDetect() { lDescriptor[nProperty].Value >>= sTemp; aPreselectedFilterName = sTemp; - - // if the preselected filter name is not correct, it must be erased after detection - // remember index of property to get access to it later - nIndexOfFilterName = nProperty; } else if( lDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("InputStream")) ) nIndexOfInputStream = nProperty; diff --git a/sw/source/core/edit/edglss.cxx b/sw/source/core/edit/edglss.cxx index 5fb1ad940c..79b1e50170 100644 --- a/sw/source/core/edit/edglss.cxx +++ b/sw/source/core/edit/edglss.cxx @@ -283,7 +283,6 @@ BOOL SwEditShell::_CopySelToDoc( SwDoc* pInsDoc, SwNodeIndex* pSttNd ) BOOL SwEditShell::GetSelectedText( String &rBuf, int nHndlParaBrk ) { - BOOL bRet = FALSE; GetCrsr(); // ggfs. alle Cursor erzeugen lassen if( IsSelOnePara() ) { @@ -305,7 +304,6 @@ BOOL SwEditShell::GetSelectedText( String &rBuf, int nHndlParaBrk ) RTL_CONSTASCII_STRINGPARAM( "\015\012" )); #endif } - bRet = TRUE; } else if( IsSelection() ) { diff --git a/sw/source/core/frmedt/feflyole.cxx b/sw/source/core/frmedt/feflyole.cxx index 28fb8fdf42..66be016748 100644 --- a/sw/source/core/frmedt/feflyole.cxx +++ b/sw/source/core/frmedt/feflyole.cxx @@ -88,6 +88,7 @@ SwFlyFrm *SwFEShell::FindFlyFrm( const uno::Reference < embed::XEmbeddedObject > } OSL_ENSURE( bExist, "OLE-Object unknown and FlyFrm not found." ); + (void)bExist; } return pFly; } diff --git a/sw/source/core/view/pagepreviewlayout.cxx b/sw/source/core/view/pagepreviewlayout.cxx index 62ed0a4f0e..ec64a9b0ee 100644 --- a/sw/source/core/view/pagepreviewlayout.cxx +++ b/sw/source/core/view/pagepreviewlayout.cxx @@ -1034,8 +1034,6 @@ bool SwPagePreviewLayout::Paint( const Rectangle _aOutRect ) const const Font& rEmptyPgFont = SwPageFrm::GetEmptyPageFont(); - Color aEmptyPgShadowBorderColor = SwViewOption::GetFontColor(); - for ( std::vector<PrevwPage*>::const_iterator aPageIter = maPrevwPages.begin(); aPageIter != maPrevwPages.end(); ++aPageIter ) diff --git a/sw/source/filter/basflt/iodetect.cxx b/sw/source/filter/basflt/iodetect.cxx index 6ea629ad15..9a6eb8b00d 100644 --- a/sw/source/filter/basflt/iodetect.cxx +++ b/sw/source/filter/basflt/iodetect.cxx @@ -308,14 +308,12 @@ const SfxFilter* SwIoSystem::GetFileFilter(const String& rFileName, { // package storage or OLEStorage based format SotStorageRef xStg; - BOOL bDeleteMedium = FALSE; if (!pMedium ) { INetURLObject aObj; aObj.SetSmartProtocol( INET_PROT_FILE ); aObj.SetSmartURL( rFileName ); pMedium = new SfxMedium( aObj.GetMainURL( INetURLObject::NO_DECODE ), STREAM_STD_READ, FALSE ); - bDeleteMedium = TRUE; } // templates should not get precedence over "normal" filters (#i35508, #i33168) @@ -457,8 +455,7 @@ bool SwIoSystem::IsDetectableText(const sal_Char* pBuf, ULONG &rLen, rLen-=nHead; } - bool bCR = false, bLF = false, bNoNormalChar = false, - bIsBareUnicode = false; + bool bCR = false, bLF = false, bIsBareUnicode = false; if (eCharSet != RTL_TEXTENCODING_DONTKNOW) { @@ -547,8 +544,6 @@ bool SwIoSystem::IsDetectableText(const sal_Char* pBuf, ULONG &rLen, case 0x9: break; default: - if (0x20 > (BYTE)*pBuf) - bNoNormalChar = true; break; } } diff --git a/sw/source/filter/ww8/wrtw8num.cxx b/sw/source/filter/ww8/wrtw8num.cxx index 284d43f6f9..90f1ad9b51 100644 --- a/sw/source/filter/ww8/wrtw8num.cxx +++ b/sw/source/filter/ww8/wrtw8num.cxx @@ -711,7 +711,6 @@ void MSWordExportBase::SubstituteBullet( String& rNumStr, rtl_TextEncoding& rChrSet, String& rFontName ) const { StarSymbolToMSMultiFont *pConvert = 0; - FontFamily eFamily = FAMILY_DECORATIVE; if (!bSubstituteBullets) return; @@ -748,7 +747,6 @@ void MSWordExportBase::SubstituteBullet( String& rNumStr, let words own font substitution kick in */ rChrSet = RTL_TEXTENCODING_UNICODE; - eFamily = FAMILY_SWISS; rFontName = ::GetFontToken(rFontName, 0); } else diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx index 0690061f5c..7d95b0e1c1 100644 --- a/sw/source/filter/ww8/ww8par.cxx +++ b/sw/source/filter/ww8/ww8par.cxx @@ -568,7 +568,6 @@ SdrObject* SwMSDffManager::ProcessObj(SvStream& rSt, if( bIsSimpleDrawingTextBox ) ApplyAttributes( rSt, aSet, rObjData ); - bool bFitText = false; if (GetPropertyValue(DFF_Prop_FitTextToShape) & 2) { aSet.Put( SdrTextAutoGrowHeightItem( TRUE ) ); @@ -576,7 +575,6 @@ SdrObject* SwMSDffManager::ProcessObj(SvStream& rSt, aNewRect.Bottom() - aNewRect.Top() ) ); aSet.Put( SdrTextMinFrameWidthItem( aNewRect.Right() - aNewRect.Left() ) ); - bFitText = true; } else { diff --git a/sw/source/filter/ww8/ww8par3.cxx b/sw/source/filter/ww8/ww8par3.cxx index 966e6e6b0d..c49a398951 100644 --- a/sw/source/filter/ww8/ww8par3.cxx +++ b/sw/source/filter/ww8/ww8par3.cxx @@ -629,6 +629,7 @@ bool WW8ListManager::ReadLVL(SwNumFmt& rNumFmt, SfxItemSet*& rpItemSet, } OSL_ENSURE(bDone, "tab setting in numbering is " "of unexpected configuration"); + (void)bDone; } if ( rNumFmt.GetPositionAndSpaceMode() == SvxNumberFormat::LABEL_WIDTH_AND_POSITION ) diff --git a/sw/source/ui/dbui/mmoutputpage.cxx b/sw/source/ui/dbui/mmoutputpage.cxx index f3bb4b4663..fdd21c3340 100644 --- a/sw/source/ui/dbui/mmoutputpage.cxx +++ b/sw/source/ui/dbui/mmoutputpage.cxx @@ -1038,7 +1038,6 @@ IMPL_LINK(SwMailMergeOutputPage, SendDocumentsHdl_Impl, PushButton*, pButton) nEnd = rConfigItem.GetMergedDocumentCount(); } bool bAsBody = false; - bool bIsPDF = false; rtl_TextEncoding eEncoding = ::gsl_getSystemTextEncoding(); SfxFilterContainer* pFilterContainer = SwDocShell::Factory().GetFilterContainer(); const SfxFilter *pSfxFlt = 0; @@ -1047,7 +1046,7 @@ IMPL_LINK(SwMailMergeOutputPage, SendDocumentsHdl_Impl, PushButton*, pButton) switch( nDocType ) { case MM_DOCTYPE_OOO : break; - case MM_DOCTYPE_PDF : bIsPDF = true; break; + case MM_DOCTYPE_PDF : break; case MM_DOCTYPE_WORD: { //the method SwIOSystemGetFilterOfFormat( ) returns the template filter diff --git a/sw/source/ui/docvw/SidebarWin.cxx b/sw/source/ui/docvw/SidebarWin.cxx index ccd09d5070..686dbc4c5d 100644 --- a/sw/source/ui/docvw/SidebarWin.cxx +++ b/sw/source/ui/docvw/SidebarWin.cxx @@ -1053,18 +1053,14 @@ IMPL_LINK(SwSidebarWin, ScrollHdl, ScrollBar*, pScroll) return 0; } -IMPL_LINK(SwSidebarWin, ModifyHdl, void*, pVoid) +IMPL_LINK(SwSidebarWin, ModifyHdl, void*, EMPTYARG) { - // no warnings, please - pVoid=0; mrView.GetDocShell()->SetModified(sal_True); return 0; } -IMPL_LINK(SwSidebarWin, DeleteHdl, void*, pVoid) +IMPL_LINK(SwSidebarWin, DeleteHdl, void*, EMPTYARG) { - // no warnings, please - pVoid=0; mnEventId = 0; Delete(); return 0; diff --git a/sw/source/ui/table/tabledlg.cxx b/sw/source/ui/table/tabledlg.cxx index 84f52b4c67..a83e958f0d 100644 --- a/sw/source/ui/table/tabledlg.cxx +++ b/sw/source/ui/table/tabledlg.cxx @@ -637,7 +637,7 @@ void SwFormatTablePage::Reset( const SfxItemSet& ) //text direction if( SFX_ITEM_SET == rSet.GetItemState( RES_FRAMEDIR, TRUE, &pItem ) ) { - sal_uInt32 nVal = ((SvxFrameDirectionItem*)pItem)->GetValue(); + sal_uIntPtr nVal = ((SvxFrameDirectionItem*)pItem)->GetValue(); USHORT nPos = aTextDirectionLB.GetEntryPos( (void*) nVal ); aTextDirectionLB.SelectEntryPos( nPos ); aTextDirectionLB.SaveValue(); diff --git a/sw/source/ui/utlui/viewlayoutctrl.cxx b/sw/source/ui/utlui/viewlayoutctrl.cxx index 352caac58c..fef0002b94 100644 --- a/sw/source/ui/utlui/viewlayoutctrl.cxx +++ b/sw/source/ui/utlui/viewlayoutctrl.cxx @@ -112,8 +112,6 @@ void SwViewLayoutControl::Paint( const UserDrawEvent& rUsrEvt ) { OutputDevice* pDev = rUsrEvt.GetDevice(); Rectangle aRect = rUsrEvt.GetRect(); - Color aOldLineColor = pDev->GetLineColor(); - Color aOldFillColor = pDev->GetFillColor(); const bool bSingleColumn = 0 == mpImpl->mnState; const bool bAutomatic = 1 == mpImpl->mnState; |