summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-02-24 12:32:14 +0100
committerThomas Arnhold <thomas@arnhold.org>2013-02-24 17:44:31 +0100
commitd5caf6898b384de8465179341e8f0ccf66b06b2b (patch)
tree979dc56521b1baad8d6db4ef336d3c19b8b419d2
parent10f4ddc9a5e28b33ad2bffe6cd3e4aaab920f872 (diff)
loplugin: unused variables
Change-Id: I7fc203900256839e679bf73b717d121fedc42087
-rw-r--r--desktop/source/app/app.cxx1
-rw-r--r--extensions/source/bibliography/datman.cxx1
-rw-r--r--forms/source/component/DatabaseForm.cxx1
-rw-r--r--forms/source/solar/component/navbarcontrol.cxx1
-rw-r--r--forms/source/xforms/xpathlib/xpathlib.cxx1
-rw-r--r--formula/source/ui/dlg/formula.cxx1
-rw-r--r--fpicker/source/office/iodlg.cxx1
-rw-r--r--i18npool/qa/cppunit/test_characterclassification.cxx1
-rw-r--r--idl/source/prj/svidl.cxx1
-rw-r--r--scaddins/source/pricing/pricing.cxx2
-rw-r--r--scripting/source/stringresource/stringresource.cxx3
-rw-r--r--slideshow/source/engine/shapes/gdimtftools.cxx1
-rw-r--r--svx/source/core/extedit.cxx1
-rw-r--r--svx/source/customshapes/EnhancedCustomShape2d.cxx1
-rw-r--r--svx/source/dialog/_contdlg.cxx1
-rw-r--r--svx/source/engine3d/dragmt3d.cxx2
-rw-r--r--svx/source/engine3d/float3d.cxx1
-rw-r--r--svx/source/fmcomp/gridcell.cxx1
-rw-r--r--svx/source/form/datanavi.cxx1
-rw-r--r--svx/source/gallery2/galctrl.cxx2
-rw-r--r--svx/source/gallery2/gallery1.cxx1
-rw-r--r--svx/source/gallery2/galmisc.cxx1
-rw-r--r--svx/source/gengal/gengal.cxx1
-rw-r--r--svx/source/items/numfmtsh.cxx10
-rw-r--r--svx/source/svdraw/svdcrtv.cxx1
-rw-r--r--svx/source/svdraw/svdoedge.cxx1
-rw-r--r--svx/source/svdraw/svdopath.cxx3
-rw-r--r--svx/source/svdraw/svdorect.cxx1
-rw-r--r--svx/source/svdraw/svdotext.cxx1
-rw-r--r--svx/source/svdraw/svdpagv.cxx1
-rw-r--r--svx/source/tbxctrls/tbxcolorupdate.cxx1
-rw-r--r--svx/source/toolbars/extrusionbar.cxx1
-rw-r--r--tools/source/fsys/tempfile.cxx2
-rw-r--r--vcl/source/control/button.cxx3
-rw-r--r--vcl/source/control/fixed.cxx2
-rw-r--r--vcl/source/control/scrbar.cxx2
-rw-r--r--vcl/source/filter/sgfbram.cxx1
-rw-r--r--vcl/source/gdi/outdev6.cxx1
-rw-r--r--vcl/source/gdi/pdfwriter_impl2.cxx1
-rw-r--r--xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx1
40 files changed, 0 insertions, 61 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
index eaee30c0843b..59ded967c233 100644
--- a/desktop/source/app/app.cxx
+++ b/desktop/source/app/app.cxx
@@ -2224,7 +2224,6 @@ void Desktop::OpenClients()
bool bRecovery = false;
const CommandLineArgs& rArgs = GetCommandLineArgs();
- SvtInternalOptions aInternalOptions;
if (!rArgs.IsQuickstart())
{
diff --git a/extensions/source/bibliography/datman.cxx b/extensions/source/bibliography/datman.cxx
index a23c0960cf5e..60450e199794 100644
--- a/extensions/source/bibliography/datman.cxx
+++ b/extensions/source/bibliography/datman.cxx
@@ -1390,7 +1390,6 @@ Reference< awt::XControlModel > BibDataManager::loadControlModel(
aElement >>= xField;
Reference< XPropertySetInfo > xInfo = xField.is() ? xField->getPropertySetInfo() : Reference< XPropertySetInfo > ();
- ::rtl::OUString sCurrentModelType;
const ::rtl::OUString sType("Type");
sal_Int32 nFormatKey = 0;
xField->getPropertyValue(sType) >>= nFormatKey;
diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx
index 99f17d4a857c..24d07499bbf6 100644
--- a/forms/source/component/DatabaseForm.cxx
+++ b/forms/source/component/DatabaseForm.cxx
@@ -557,7 +557,6 @@ Sequence<sal_Int8> ODatabaseForm::GetDataMultiPartEncoded(const Reference<XContr
// Aggregate Liste to ::rtl::OUString
- ::rtl::OUString aResult;
for ( HtmlSuccessfulObjListIterator pSuccObj = aSuccObjList.begin();
pSuccObj < aSuccObjList.end();
++pSuccObj
diff --git a/forms/source/solar/component/navbarcontrol.cxx b/forms/source/solar/component/navbarcontrol.cxx
index 6f86eee71d4b..001b711d250c 100644
--- a/forms/source/solar/component/navbarcontrol.cxx
+++ b/forms/source/solar/component/navbarcontrol.cxx
@@ -366,7 +366,6 @@ namespace frm
else
{
OSL_VERIFY( _rValue >>= nColor );
- Color aColor( nColor );
pNavBar->SetTextLineColor( nColor );
}
}
diff --git a/forms/source/xforms/xpathlib/xpathlib.cxx b/forms/source/xforms/xpathlib/xpathlib.cxx
index 508e98d25556..7ba0dcbfa00f 100644
--- a/forms/source/xforms/xpathlib/xpathlib.cxx
+++ b/forms/source/xforms/xpathlib/xpathlib.cxx
@@ -365,7 +365,6 @@ void xforms_secondsFromDateTimeFunction(xmlXPathParserContextPtr ctxt, int nargs
if (parseDateTime(aString, aDateTime))
{
Date aReferenceDate(1, 1, 1970);
- Time aReferenceTime(0, 0, 0);
sal_Int32 nDays = aDateTime - aReferenceDate;
sal_Int32 nSeconds = nDays * 24 * 60 * 60;
nSeconds += aDateTime.GetHour() * 60 * 60;
diff --git a/formula/source/ui/dlg/formula.cxx b/formula/source/ui/dlg/formula.cxx
index f76feaad5517..e6f890d0363d 100644
--- a/formula/source/ui/dlg/formula.cxx
+++ b/formula/source/ui/dlg/formula.cxx
@@ -820,7 +820,6 @@ void FormulaDlg_Impl::FillControls(sal_Bool &rbNext, sal_Bool &rbPrev)
if (!pData )
return;
- String aNewTitle;
// 2. Page or Edit: show selected function
xub_StrLen nFStart = pData->GetFStart();
diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx
index 099ec8782599..74bf784e7dd6 100644
--- a/fpicker/source/office/iodlg.cxx
+++ b/fpicker/source/office/iodlg.cxx
@@ -1517,7 +1517,6 @@ void SvtFileDialog::OpenMultiSelection_Impl()
*/
{
- String aPath;
sal_uLong nCount = _pFileView->GetSelectionCount();
SvTreeListEntry* pEntry = nCount ? _pFileView->FirstSelected() : NULL;
diff --git a/i18npool/qa/cppunit/test_characterclassification.cxx b/i18npool/qa/cppunit/test_characterclassification.cxx
index 02f601f9877b..69b6c9f2eaa8 100644
--- a/i18npool/qa/cppunit/test_characterclassification.cxx
+++ b/i18npool/qa/cppunit/test_characterclassification.cxx
@@ -77,7 +77,6 @@ void TestCharacterClassification::testTitleCase()
//tricky one
const sal_Unicode LATINSMALLLETTERDZ[] = { 0x01F3 };
::rtl::OUString aTest(LATINSMALLLETTERDZ, SAL_N_ELEMENTS(LATINSMALLLETTERDZ));
- ::rtl::OUString sTest(aTest);
::rtl::OUString sTitleCase = m_xCC->toTitle(aTest, 0, aTest.getLength(), aLocale);
CPPUNIT_ASSERT_MESSAGE("Should be title", sTitleCase.getLength() == 1 && sTitleCase[0] == 0x01F2);
::rtl::OUString sUpperCase = m_xCC->toUpper(aTest, 0, aTest.getLength(), aLocale);
diff --git a/idl/source/prj/svidl.cxx b/idl/source/prj/svidl.cxx
index d52a44269d63..3dbb176cac76 100644
--- a/idl/source/prj/svidl.cxx
+++ b/idl/source/prj/svidl.cxx
@@ -92,7 +92,6 @@ int cdecl main ( int argc, char ** argv)
String aTmpSfxItemFile;
String aTmpDataBaseFile;
String aTmpCallingFile;
- String aTmpSrcFile;
String aTmpCxxFile;
String aTmpHxxFile;
String aTmpHelpIdFile;
diff --git a/scaddins/source/pricing/pricing.cxx b/scaddins/source/pricing/pricing.cxx
index cf657874f8db..2e7e401c5717 100644
--- a/scaddins/source/pricing/pricing.cxx
+++ b/scaddins/source/pricing/pricing.cxx
@@ -167,8 +167,6 @@ ScaFuncDataList::~ScaFuncDataList()
const ScaFuncData* ScaFuncDataList::Get( const OUString& rProgrammaticName ) const
{
- OUString aTestName;
-
if( aLastName == rProgrammaticName ){
return Get( nLast );
}
diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx
index 8b0db02c5089..e88ff5ac740a 100644
--- a/scripting/source/stringresource/stringresource.cxx
+++ b/scripting/source/stringresource/stringresource.cxx
@@ -1118,9 +1118,6 @@ void StringResourcePersistenceImpl::implStoreAtStorage
Reference< io::XStream > xElementStream =
Storage->openStreamElement( aStreamName, ElementModes::READWRITE );
- ::rtl::OUString aPropName("MediaType");
- ::rtl::OUString aMime("text/plain");
-
// Only create stream without content
Reference< io::XOutputStream > xOutputStream = xElementStream->getOutputStream();
xOutputStream->closeOutput();
diff --git a/slideshow/source/engine/shapes/gdimtftools.cxx b/slideshow/source/engine/shapes/gdimtftools.cxx
index 10e65b3c5a09..c79976c129ab 100644
--- a/slideshow/source/engine/shapes/gdimtftools.cxx
+++ b/slideshow/source/engine/shapes/gdimtftools.cxx
@@ -353,7 +353,6 @@ bool getAnimationFromGraphic( VectorOfMtfAnimationFrames& o_rFrames,
if( aMask.IsEmpty() )
{
- const Point aEmpty;
const Rectangle aRect(aEmptyPoint,
aVDevMask.GetOutputSizePixel());
const Wallpaper aWallpaper(COL_BLACK);
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;
diff --git a/tools/source/fsys/tempfile.cxx b/tools/source/fsys/tempfile.cxx
index 7a3f9dfc2f0a..ae4db9683e5e 100644
--- a/tools/source/fsys/tempfile.cxx
+++ b/tools/source/fsys/tempfile.cxx
@@ -65,8 +65,6 @@ String ConstructTempDir_Impl( const String* pParent )
String aName;
if ( pParent && pParent->Len() )
{
- // if parent given try to use it
- rtl::OUString aTmp( *pParent );
rtl::OUString aRet;
// test for valid filename
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index 5fbe862df357..4ce2748998cd 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -942,7 +942,6 @@ void PushButton::ImplDrawPushButton( bool bLayout )
Size aOutSz( GetOutputSizePixel() );
Rectangle aRect( aPoint, aOutSz );
Rectangle aInRect = aRect;
- Rectangle aTextRect;
sal_Bool bNativeOK = sal_False;
// adjust style if button should be rendered 'pressed'
@@ -2137,7 +2136,6 @@ void RadioButton::ImplDraw( OutputDevice* pDev, sal_uLong nDrawFlags,
{
WinBits nWinStyle = GetStyle();
OUString aText( GetText() );
- Rectangle aRect( rPos, rSize );
MetricVector* pVector = bLayout ? &mpControlData->mpLayoutData->m_aUnicodeBoundRects : NULL;
OUString* pDisplayText = bLayout ? &mpControlData->mpLayoutData->m_aDisplayText : NULL;
@@ -2611,7 +2609,6 @@ void RadioButton::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize
Font aFont = GetDrawPixelFont( pDev );
Rectangle aStateRect;
Rectangle aMouseRect;
- Rectangle aFocusRect;
aImageSize.Width() = CalcZoom( aImageSize.Width() );
aImageSize.Height() = CalcZoom( aImageSize.Height() );
diff --git a/vcl/source/control/fixed.cxx b/vcl/source/control/fixed.cxx
index 3c5346d984a3..efa5985f20c4 100644
--- a/vcl/source/control/fixed.cxx
+++ b/vcl/source/control/fixed.cxx
@@ -874,7 +874,6 @@ void FixedBitmap::ImplDraw( OutputDevice* pDev, sal_uLong /* nDrawFlags */,
{
sal_uInt16 nStyle = 0;
Bitmap* pBitmap = &maBitmap;
- Color aCol;
if( nStyle & IMAGE_DRAW_COLORTRANSFORM )
{
@@ -1095,7 +1094,6 @@ void FixedImage::ImplDraw( OutputDevice* pDev, sal_uLong nDrawFlags,
}
Image *pImage = &maImage;
- Color aCol;
// Haben wir ueberhaupt ein Image
if ( !(!(*pImage)) )
diff --git a/vcl/source/control/scrbar.cxx b/vcl/source/control/scrbar.cxx
index b2ffb7f2c29f..6b7d3ca895ae 100644
--- a/vcl/source/control/scrbar.cxx
+++ b/vcl/source/control/scrbar.cxx
@@ -468,8 +468,6 @@ void ScrollBar::ImplCalc( sal_Bool bUpdate )
void ScrollBar::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags )
{
Point aPos = pDev->LogicToPixel( rPos );
- Size aSize = pDev->LogicToPixel( rSize );
- Rectangle aRect( aPos, aSize );
pDev->Push();
pDev->SetMapMode();
diff --git a/vcl/source/filter/sgfbram.cxx b/vcl/source/filter/sgfbram.cxx
index f698329a0c6d..8aad336e4654 100644
--- a/vcl/source/filter/sgfbram.cxx
+++ b/vcl/source/filter/sgfbram.cxx
@@ -404,7 +404,6 @@ sal_Bool SgfFilterVect(SvStream& rInp, SgfHeader& rHead, SgfEntry&, GDIMetaFile&
sal_Bool bPDwn=sal_False;
Point aP0(0,0);
Point aP1(0,0);
- String Msg;
sal_uInt16 RecNr=0;
rMtf.Record(&aOutDev);
diff --git a/vcl/source/gdi/outdev6.cxx b/vcl/source/gdi/outdev6.cxx
index 4341a1ed2a80..782eb93d0c84 100644
--- a/vcl/source/gdi/outdev6.cxx
+++ b/vcl/source/gdi/outdev6.cxx
@@ -206,7 +206,6 @@ void OutputDevice::DrawTransparent( const basegfx::B2DPolyPolygon& rB2DPolyPoly,
}
// fallback to old polygon drawing if needed
- const PolyPolygon aToolsPolyPolygon( rB2DPolyPoly );
DrawTransparent(PolyPolygon(rB2DPolyPoly), static_cast< sal_uInt16 >(fTransparency * 100.0));
}
diff --git a/vcl/source/gdi/pdfwriter_impl2.cxx b/vcl/source/gdi/pdfwriter_impl2.cxx
index 40ac1ac575a8..ac35c4f7c05c 100644
--- a/vcl/source/gdi/pdfwriter_impl2.cxx
+++ b/vcl/source/gdi/pdfwriter_impl2.cxx
@@ -508,7 +508,6 @@ void PDFWriterImpl::playMetafile( const GDIMetaFile& i_rMtf, vcl::PDFExtOutDevDa
if( ! i_rContext.m_bTransparenciesWereRemoved )
{
const MetaCommentAction* pA = (const MetaCommentAction*) pAction;
- String aSkipComment;
if( pA->GetComment().equalsIgnoreAsciiCase("XGRAD_SEQ_BEGIN"))
{
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx
index c8279a01ff22..52c6a0d80cfa 100644
--- a/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx
+++ b/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx
@@ -156,7 +156,6 @@ void ElementDescriptor::readPageModel( StyleBag * all_styles )
// collect elements
readDefaults();
- OUString aTitle;
readStringAttr( "Title", XMLNS_DIALOGS_PREFIX ":title" );
uno::Reference< container::XNameContainer > xControlContainer( _xProps, uno::UNO_QUERY );
if ( xControlContainer.is() && xControlContainer->getElementNames().getLength() )