[Libreoffice-commits] core.git: desktop/source extensions/source forms/source formula/source fpicker/source i18npool/qa idl/source scaddins/source scripting/source slideshow/source svx/source tools/source vcl/source xmlscript/source
Thomas Arnhold
thomas at arnhold.org
Sun Feb 24 08:45:56 PST 2013
desktop/source/app/app.cxx | 1 -
extensions/source/bibliography/datman.cxx | 1 -
forms/source/component/DatabaseForm.cxx | 1 -
forms/source/solar/component/navbarcontrol.cxx | 1 -
forms/source/xforms/xpathlib/xpathlib.cxx | 1 -
formula/source/ui/dlg/formula.cxx | 1 -
fpicker/source/office/iodlg.cxx | 1 -
i18npool/qa/cppunit/test_characterclassification.cxx | 1 -
idl/source/prj/svidl.cxx | 1 -
scaddins/source/pricing/pricing.cxx | 2 --
scripting/source/stringresource/stringresource.cxx | 3 ---
slideshow/source/engine/shapes/gdimtftools.cxx | 1 -
svx/source/core/extedit.cxx | 1 -
svx/source/customshapes/EnhancedCustomShape2d.cxx | 1 -
svx/source/dialog/_contdlg.cxx | 1 -
svx/source/engine3d/dragmt3d.cxx | 2 --
svx/source/engine3d/float3d.cxx | 1 -
svx/source/fmcomp/gridcell.cxx | 1 -
svx/source/form/datanavi.cxx | 1 -
svx/source/gallery2/galctrl.cxx | 2 --
svx/source/gallery2/gallery1.cxx | 1 -
svx/source/gallery2/galmisc.cxx | 1 -
svx/source/gengal/gengal.cxx | 1 -
svx/source/items/numfmtsh.cxx | 10 ----------
svx/source/svdraw/svdcrtv.cxx | 1 -
svx/source/svdraw/svdoedge.cxx | 1 -
svx/source/svdraw/svdopath.cxx | 3 ---
svx/source/svdraw/svdorect.cxx | 1 -
svx/source/svdraw/svdotext.cxx | 1 -
svx/source/svdraw/svdpagv.cxx | 1 -
svx/source/tbxctrls/tbxcolorupdate.cxx | 1 -
svx/source/toolbars/extrusionbar.cxx | 1 -
tools/source/fsys/tempfile.cxx | 2 --
vcl/source/control/button.cxx | 3 ---
vcl/source/control/fixed.cxx | 2 --
vcl/source/control/scrbar.cxx | 2 --
vcl/source/filter/sgfbram.cxx | 1 -
vcl/source/gdi/outdev6.cxx | 1 -
vcl/source/gdi/pdfwriter_impl2.cxx | 1 -
xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx | 1 -
40 files changed, 61 deletions(-)
New commits:
commit d5caf6898b384de8465179341e8f0ccf66b06b2b
Author: Thomas Arnhold <thomas at arnhold.org>
Date: Sun Feb 24 12:32:14 2013 +0100
loplugin: unused variables
Change-Id: I7fc203900256839e679bf73b717d121fedc42087
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
index eaee30c..59ded96 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 a23c096..60450e1 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 99f17d4..24d0749 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 6f86eee..001b711 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 508e98d..7ba0dcb 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 f76feaa..e6f890d 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 099ec87..74bf784 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 02f601f..69b6c9f 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 d52a442..3dbb176 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 cf65787..2e7e401 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 8b0db02..e88ff5a 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 10e65b3..c79976c 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 7754075..a4bc79f 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 8c199a0..7d8920d 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 d6e77a2..3795b83 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 913a531..ccc796e 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 3304d22..c7d0995 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 0281ed3..28564d9 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 fe5d9fa..816fae4 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 944950c..3645384 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 628d344..daa0d5e 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 5ff8acf..450efbd 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 e1989f6..7653678 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 c167934..1187f97 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 6e1adbb..645e803 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 6406e0a..707b748 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 17bd80d..03b0033 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 68f5258..a60894e 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 feafda5..646e664 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 595e5b1..47da065 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 7596171..14e2480 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 f92beb3..ad440da 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 7a3f9df..ae4db96 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 5fbe862..4ce2748 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 3c5346d..efa5985 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 b2ffb7f..6b7d3ca 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 f698329..8aad336 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 4341a1e..782eb93 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 40ac1ac..ac35c4f 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 c8279a0..52c6a0d 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() )
More information about the Libreoffice-commits
mailing list