diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-02-24 12:32:14 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-02-24 17:44:31 +0100 |
commit | d5caf6898b384de8465179341e8f0ccf66b06b2b (patch) | |
tree | 979dc56521b1baad8d6db4ef336d3c19b8b419d2 /svx | |
parent | 10f4ddc9a5e28b33ad2bffe6cd3e4aaab920f872 (diff) |
loplugin: unused variables
Change-Id: I7fc203900256839e679bf73b717d121fedc42087
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/core/extedit.cxx | 1 | ||||
-rw-r--r-- | svx/source/customshapes/EnhancedCustomShape2d.cxx | 1 | ||||
-rw-r--r-- | svx/source/dialog/_contdlg.cxx | 1 | ||||
-rw-r--r-- | svx/source/engine3d/dragmt3d.cxx | 2 | ||||
-rw-r--r-- | svx/source/engine3d/float3d.cxx | 1 | ||||
-rw-r--r-- | svx/source/fmcomp/gridcell.cxx | 1 | ||||
-rw-r--r-- | svx/source/form/datanavi.cxx | 1 | ||||
-rw-r--r-- | svx/source/gallery2/galctrl.cxx | 2 | ||||
-rw-r--r-- | svx/source/gallery2/gallery1.cxx | 1 | ||||
-rw-r--r-- | svx/source/gallery2/galmisc.cxx | 1 | ||||
-rw-r--r-- | svx/source/gengal/gengal.cxx | 1 | ||||
-rw-r--r-- | svx/source/items/numfmtsh.cxx | 10 | ||||
-rw-r--r-- | svx/source/svdraw/svdcrtv.cxx | 1 | ||||
-rw-r--r-- | svx/source/svdraw/svdoedge.cxx | 1 | ||||
-rw-r--r-- | svx/source/svdraw/svdopath.cxx | 3 | ||||
-rw-r--r-- | svx/source/svdraw/svdorect.cxx | 1 | ||||
-rw-r--r-- | svx/source/svdraw/svdotext.cxx | 1 | ||||
-rw-r--r-- | svx/source/svdraw/svdpagv.cxx | 1 | ||||
-rw-r--r-- | svx/source/tbxctrls/tbxcolorupdate.cxx | 1 | ||||
-rw-r--r-- | svx/source/toolbars/extrusionbar.cxx | 1 |
20 files changed, 0 insertions, 33 deletions
diff --git a/svx/source/core/extedit.cxx b/svx/source/core/extedit.cxx index 7754075b25e2..a4bc79f8adce 100644 --- a/svx/source/core/extedit.cxx +++ b/svx/source/core/extedit.cxx @@ -72,7 +72,6 @@ IMPL_LINK (ExternalToolEdit, StartListeningEvent, void*, pEvent) { //Start an event listener implemented via VCL timeout ExternalToolEdit* pData = ( ExternalToolEdit* )pEvent; - String aURL( pData->m_aFileName ); new FileChangedChecker( pData->m_aFileName, diff --git a/svx/source/customshapes/EnhancedCustomShape2d.cxx b/svx/source/customshapes/EnhancedCustomShape2d.cxx index 8c199a08a9fd..7d8920df128a 100644 --- a/svx/source/customshapes/EnhancedCustomShape2d.cxx +++ b/svx/source/customshapes/EnhancedCustomShape2d.cxx @@ -2153,7 +2153,6 @@ SdrObject* EnhancedCustomShape2d::CreatePathObj( sal_Bool bLineGeometryNeededOnl if ( !vObjectList.empty() ) { const SfxItemSet& rCustomShapeSet = pCustomShapeObj->GetMergedItemSet(); - Color aFillColor; sal_uInt32 nColorCount = nColorData >> 28; sal_uInt32 nColorIndex = 0; diff --git a/svx/source/dialog/_contdlg.cxx b/svx/source/dialog/_contdlg.cxx index d6e77a2a2402..3795b83e6674 100644 --- a/svx/source/dialog/_contdlg.cxx +++ b/svx/source/dialog/_contdlg.cxx @@ -110,7 +110,6 @@ PolyPolygon SvxContourDlg::CreateAutoContour( const Graphic& rGraphic, { VirtualDevice aVDev; MapMode aTransMap; - PolyPolygon aAnimPolyPoly; const Animation aAnim( rGraphic.GetAnimation() ); const Size& rSizePix = aAnim.GetDisplaySizePixel(); const sal_uInt16 nCount = aAnim.Count(); diff --git a/svx/source/engine3d/dragmt3d.cxx b/svx/source/engine3d/dragmt3d.cxx index 913a53172724..ccc796eb6dbe 100644 --- a/svx/source/engine3d/dragmt3d.cxx +++ b/svx/source/engine3d/dragmt3d.cxx @@ -512,8 +512,6 @@ void E3dDragMove::MoveSdrDrag(const Point& rPnt) { // Translation // Determine the motion vector - basegfx::B3DPoint aGlobalMoveHead((double)(rPnt.X() - maLastPos.X()), (double)(rPnt.Y() - maLastPos.Y()), 32768.0); - basegfx::B3DPoint aGlobalMoveTail(0.0, 0.0, 32768.0); const sal_uInt32 nCnt(maGrp.size()); // Get modifier diff --git a/svx/source/engine3d/float3d.cxx b/svx/source/engine3d/float3d.cxx index 3304d2299328..c7d099597530 100644 --- a/svx/source/engine3d/float3d.cxx +++ b/svx/source/engine3d/float3d.cxx @@ -2805,7 +2805,6 @@ IMPL_LINK( Svx3DWin, SelectHdl, void *, p ) { if( p ) { - Color aColor; sal_Bool bUpdatePreview = sal_False; // Material diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx index 0281ed3bc657..28564d922e3b 100644 --- a/svx/source/fmcomp/gridcell.cxx +++ b/svx/source/fmcomp/gridcell.cxx @@ -3032,7 +3032,6 @@ void DbFilterField::SetText(const OUString& rText) } break; case ::com::sun::star::form::FormComponentType::LISTBOX: { - OUString aText; Sequence<sal_Int16> aPosSeq = ::comphelper::findValue(m_aValueList, m_aText, sal_True); if (aPosSeq.getLength()) static_cast<ListBox*>(m_pWindow)->SelectEntryPos(aPosSeq.getConstArray()[0], sal_True); diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx index fe5d9faebe20..816fae4235df 100644 --- a/svx/source/form/datanavi.cxx +++ b/svx/source/form/datanavi.cxx @@ -2054,7 +2054,6 @@ namespace svxform { try { - ::rtl::OUString sURL = m_xFrameModel->getURL(); Reference< css::xforms::XFormsSupplier > xFormsSupp( m_xFrameModel, UNO_QUERY ); if ( xFormsSupp.is() ) { diff --git a/svx/source/gallery2/galctrl.cxx b/svx/source/gallery2/galctrl.cxx index 944950c11717..3645384534f3 100644 --- a/svx/source/gallery2/galctrl.cxx +++ b/svx/source/gallery2/galctrl.cxx @@ -379,7 +379,6 @@ void GalleryIconView::UserDraw( const UserDrawEvent& rUDEvt ) { if( ( aSize.Width() > rRect.GetWidth() ) || ( aSize.Height() > rRect.GetHeight() ) ) { - Point aNewPos; const double fBmpWH = (double) aSize.Width() / aSize.Height(); const double fThmpWH = (double) rRect.GetWidth() / rRect.GetHeight(); @@ -609,7 +608,6 @@ void GalleryListView::PaintField( OutputDevice& rDev, const Rectangle& rRect, sa { if( ( aSize.Width() > aOutputRect.GetWidth() ) || ( aSize.Height() > aOutputRect.GetHeight() ) ) { - Point aNewPos; const double fBmpWH = (double) aSize.Width() / aSize.Height(); const double fThmpWH = (double) aOutputRect.GetWidth() / aOutputRect.GetHeight(); diff --git a/svx/source/gallery2/gallery1.cxx b/svx/source/gallery2/gallery1.cxx index 628d344fa0c1..daa0d5edfbc8 100644 --- a/svx/source/gallery2/gallery1.cxx +++ b/svx/source/gallery2/gallery1.cxx @@ -80,7 +80,6 @@ GalleryThemeEntry::GalleryThemeEntry( const INetURLObject& rBaseURL, const Strin INetURLObject GalleryThemeEntry::ImplGetURLIgnoreCase( const INetURLObject& rURL ) const { INetURLObject aURL( rURL ); - String aFileName; // check original file name if( !FileExists( aURL ) ) diff --git a/svx/source/gallery2/galmisc.cxx b/svx/source/gallery2/galmisc.cxx index 5ff8acf83458..450efbdf4978 100644 --- a/svx/source/gallery2/galmisc.cxx +++ b/svx/source/gallery2/galmisc.cxx @@ -108,7 +108,6 @@ sal_uInt16 GalleryGraphicImport( const INetURLObject& rURL, Graphic& rGraphic, { sal_uInt16 nRet = SGA_IMPORT_NONE; SfxMedium aMedium( rURL.GetMainURL( INetURLObject::NO_DECODE ), STREAM_READ ); - String aFilterName; aMedium.DownLoad(); diff --git a/svx/source/gengal/gengal.cxx b/svx/source/gengal/gengal.cxx index e1989f650f3d..7653678c3f70 100644 --- a/svx/source/gengal/gengal.cxx +++ b/svx/source/gengal/gengal.cxx @@ -144,7 +144,6 @@ static void createTheme( rtl::OUString aThemeName, // Requires a load more components ... Graphic aGraphic; - String aFormat; if ( ! pGalTheme->InsertURL( *aIter ) ) fprintf( stderr, "Failed to import '%s'\n", diff --git a/svx/source/items/numfmtsh.cxx b/svx/source/items/numfmtsh.cxx index c16793445975..1187f9785d56 100644 --- a/svx/source/items/numfmtsh.cxx +++ b/svx/source/items/numfmtsh.cxx @@ -682,8 +682,6 @@ short SvxNumberFormatShell::FillEListWithFormats_Impl( std::vector<String*>& rLi sal_uInt32 nNFEntry; String aStrComment; String aNewFormNInfo; - String aPrevString; - String a2PrevString; short nMyCat = SELPOS_NONE; @@ -727,8 +725,6 @@ short SvxNumberFormatShell::FillEListWithDateTime_Impl( std::vector<String*>& rL sal_uInt32 nNFEntry; String aStrComment; String aNewFormNInfo; - String aPrevString; - String a2PrevString; short nMyCat = SELPOS_NONE; @@ -811,8 +807,6 @@ short SvxNumberFormatShell::FillEListWithSysCurrencys( std::vector<String*>& rLi sal_uInt32 nNFEntry; String aStrComment; String aNewFormNInfo; - String aPrevString; - String a2PrevString; nCurCurrencyEntryPos=0; @@ -904,8 +898,6 @@ short SvxNumberFormatShell::FillEListWithUserCurrencys( std::vector<String*>& rL String aStrComment; String aNewFormNInfo; - String aPrevString; - String a2PrevString; short nMyCat = SELPOS_NONE; const NfCurrencyEntry* pTmpCurrencyEntry; @@ -1099,8 +1091,6 @@ short SvxNumberFormatShell::FillEListWithUsD_Impl( std::vector<String*>& rList, String aStrComment; String aNewFormNInfo; - String aPrevString; - String a2PrevString; short nMyCat = SELPOS_NONE; bool bAdditional = (nPrivCat != CAT_USERDEFINED && diff --git a/svx/source/svdraw/svdcrtv.cxx b/svx/source/svdraw/svdcrtv.cxx index 6e1adbb4ca5f..645e803affd0 100644 --- a/svx/source/svdraw/svdcrtv.cxx +++ b/svx/source/svdraw/svdcrtv.cxx @@ -575,7 +575,6 @@ void SdrCreateView::MovCreateObj(const Point& rPnt) bool bMerk(aDragStat.IsMinMoved()); if (aDragStat.CheckMinMoved(aPnt)) { - Rectangle aBound; if (!bMerk) aDragStat.NextPoint(); aDragStat.NextMove(aPnt); pAktCreate->MovCreate(aDragStat); diff --git a/svx/source/svdraw/svdoedge.cxx b/svx/source/svdraw/svdoedge.cxx index 6406e0aee104..707b7489ada1 100644 --- a/svx/source/svdraw/svdoedge.cxx +++ b/svx/source/svdraw/svdoedge.cxx @@ -2087,7 +2087,6 @@ bool SdrEdgeObj::ImpFindConnector(const Point& rPt, const SdrPageView& rPV, SdrO sal_uInt16 nMarkHdSiz=rPV.GetView().GetMarkHdlSizePixel(); Size aHalfConSiz(nMarkHdSiz,nMarkHdSiz); aHalfConSiz=pOut->PixelToLogic(aHalfConSiz); - Size aHalfCenterSiz(2*aHalfConSiz.Width(),2*aHalfConSiz.Height()); Rectangle aMouseRect(rPt,rPt); aMouseRect.Left() -=aHalfConSiz.Width(); aMouseRect.Top() -=aHalfConSiz.Height(); diff --git a/svx/source/svdraw/svdopath.cxx b/svx/source/svdraw/svdopath.cxx index 17bd80d010e0..03b003343552 100644 --- a/svx/source/svdraw/svdopath.cxx +++ b/svx/source/svdraw/svdopath.cxx @@ -1061,7 +1061,6 @@ String ImpPathForDragAndCreate::getSpecialDragComment(const SdrDragStat& rDrag) else if(nPntAnz > 1) { sal_uInt16 nPntMax(nPntAnz - 1); - Point aPt1,aPt2; sal_Bool bIsClosed(IsClosed(meObjectKind)); sal_Bool bPt1(nPntNum > 0); sal_Bool bPt2(nPntNum < nPntMax); @@ -1874,8 +1873,6 @@ void SdrPathObj::TakeObjNameSingul(XubString& rName) const const basegfx::B2DPolygon aPoly(GetPathPoly().getB2DPolygon(0L)); const basegfx::B2DPoint aB2DPoint0(aPoly.getB2DPoint(0L)); const basegfx::B2DPoint aB2DPoint1(aPoly.getB2DPoint(1L)); - const Point aPoint0(FRound(aB2DPoint0.getX()), FRound(aB2DPoint0.getY())); - const Point aPoint1(FRound(aB2DPoint0.getX()), FRound(aB2DPoint0.getY())); if(aB2DPoint0 != aB2DPoint1) { diff --git a/svx/source/svdraw/svdorect.cxx b/svx/source/svdraw/svdorect.cxx index 68f52587851a..a60894e46147 100644 --- a/svx/source/svdraw/svdorect.cxx +++ b/svx/source/svdraw/svdorect.cxx @@ -391,7 +391,6 @@ bool SdrRectObj::applySpecialDrag(SdrDragStat& rDrag) if (bRad) { - Rectangle aBoundRect0; Point aPt(rDrag.GetNow()); if(aGeo.nDrehWink) diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx index feafda5c8157..646e66491919 100644 --- a/svx/source/svdraw/svdotext.cxx +++ b/svx/source/svdraw/svdotext.cxx @@ -214,7 +214,6 @@ void SdrTextObj::FitFrameToTextSize() rOutliner.SetPaperSize(Size(aRect.Right()-aRect.Left(),aRect.Bottom()-aRect.Top())); rOutliner.SetUpdateMode(sal_True); rOutliner.SetText(*pText->GetOutlinerParaObject()); - Rectangle aTextRect; Size aNewSize(rOutliner.CalcTextSize()); rOutliner.Clear(); aNewSize.Width()++; // because of possible rounding errors diff --git a/svx/source/svdraw/svdpagv.cxx b/svx/source/svdraw/svdpagv.cxx index 595e5b139b96..47da065daf40 100644 --- a/svx/source/svdraw/svdpagv.cxx +++ b/svx/source/svdraw/svdpagv.cxx @@ -548,7 +548,6 @@ void SdrPageView::DrawPageViewGrid(OutputDevice& rOut, const Rectangle& rRect, C if (y1<rRect.Top() -nY1Pix) y1=rRect.Top() -nY1Pix; if (y2>rRect.Bottom()+nY1Pix) y2=rRect.Bottom()+nY1Pix; } - Point aPnt; long xBigOrg=aOrg.X()+nWrX; while (xBigOrg>=x1) xBigOrg-=nx1; diff --git a/svx/source/tbxctrls/tbxcolorupdate.cxx b/svx/source/tbxctrls/tbxcolorupdate.cxx index 7596171e4dcb..14e2480974ed 100644 --- a/svx/source/tbxctrls/tbxcolorupdate.cxx +++ b/svx/source/tbxctrls/tbxcolorupdate.cxx @@ -106,7 +106,6 @@ namespace svx { Bitmap aMsk; BitmapWriteAccess* pMskAcc; - const Point aNullPnt; if( aBmpEx.IsAlpha() ) pMskAcc = ( aMsk = aBmpEx.GetAlpha().GetBitmap() ).AcquireWriteAccess(); diff --git a/svx/source/toolbars/extrusionbar.cxx b/svx/source/toolbars/extrusionbar.cxx index f92beb39fe64..ad440da0b047 100644 --- a/svx/source/toolbars/extrusionbar.cxx +++ b/svx/source/toolbars/extrusionbar.cxx @@ -852,7 +852,6 @@ void getExtrusionSurfaceState( SdrView* pSdrView, SfxItemSet& rSet ) static const rtl::OUString sExtrusion( RTL_CONSTASCII_USTRINGPARAM ( "Extrusion" ) ); static const rtl::OUString sShadeMode( RTL_CONSTASCII_USTRINGPARAM ( "ShadeMode" ) ); static const rtl::OUString sSpecularity( RTL_CONSTASCII_USTRINGPARAM ( "Specularity" ) ); - static const rtl::OUString sDiffusion( RTL_CONSTASCII_USTRINGPARAM ( "Diffusion" ) ); static const rtl::OUString sMetal( RTL_CONSTASCII_USTRINGPARAM ( "Metal" ) ); com::sun::star::uno::Any* pAny; |