From 367105e0248c7b80b60b2554d04f5f248b4259b3 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 19 Oct 2015 10:37:58 +0200 Subject: cleanup some local var declarations found with git grep -nP '(\w+)\s+=\s+\g1\(' | lots-of-hand-filtering Change-Id: I598b0cfa6607823eaef09d95e610e05145c727f7 --- sd/source/filter/eppt/epptso.cxx | 4 ++-- sd/source/ui/annotations/annotationmanager.cxx | 2 +- sd/source/ui/dlg/docprev.cxx | 2 +- sd/source/ui/func/fupage.cxx | 2 +- sd/source/ui/unoidl/unopage.cxx | 4 ++-- sd/source/ui/view/drviews1.cxx | 2 +- sd/source/ui/view/viewshe2.cxx | 4 ++-- 7 files changed, 10 insertions(+), 10 deletions(-) (limited to 'sd') diff --git a/sd/source/filter/eppt/epptso.cxx b/sd/source/filter/eppt/epptso.cxx index 37ac0ec9c037..3b00337cc395 100644 --- a/sd/source/filter/eppt/epptso.cxx +++ b/sd/source/filter/eppt/epptso.cxx @@ -834,7 +834,7 @@ void PPTWriter::ImplWritePortions( SvStream& rOut, TextObj& rTextObj ) { case ::com::sun::star::drawing::FillStyle_GRADIENT : { - Point aEmptyPoint = Point(); + Point aEmptyPoint; Rectangle aRect( aEmptyPoint, Size( 28000, 21000 ) ); EscherPropertyContainer aPropOpt( mpPptEscherEx->GetGraphicProvider(), mpPicStrm, aRect ); aPropOpt.CreateGradientProperties( mXPropSet ); @@ -857,7 +857,7 @@ void PPTWriter::ImplWritePortions( SvStream& rOut, TextObj& rTextObj ) { case ::com::sun::star::drawing::FillStyle_GRADIENT : { - Point aEmptyPoint = Point(); + Point aEmptyPoint; Rectangle aRect( aEmptyPoint, Size( 28000, 21000 ) ); EscherPropertyContainer aPropOpt( mpPptEscherEx->GetGraphicProvider(), mpPicStrm, aRect ); aPropOpt.CreateGradientProperties( mXBackgroundPropSet ); diff --git a/sd/source/ui/annotations/annotationmanager.cxx b/sd/source/ui/annotations/annotationmanager.cxx index da82d3cc9c27..166b8c17e32e 100644 --- a/sd/source/ui/annotations/annotationmanager.cxx +++ b/sd/source/ui/annotations/annotationmanager.cxx @@ -152,7 +152,7 @@ OUString getAnnotationDateTimeString( const Reference< XAnnotation >& xAnnotatio com::sun::star::util::DateTime aDateTime( xAnnotation->getDateTime() ); Date aSysDate( Date::SYSTEM ); - Date aDate = Date( aDateTime.Day, aDateTime.Month, aDateTime.Year ); + Date aDate( aDateTime.Day, aDateTime.Month, aDateTime.Year ); if (aDate==aSysDate) sRet = SdResId(STR_ANNOTATION_TODAY); else if (aDate == Date(aSysDate-1)) diff --git a/sd/source/ui/dlg/docprev.cxx b/sd/source/ui/dlg/docprev.cxx index 38ded5a9b710..11935c8c6e7e 100644 --- a/sd/source/ui/dlg/docprev.cxx +++ b/sd/source/ui/dlg/docprev.cxx @@ -274,7 +274,7 @@ void SdDocPreviewWin::updateViewSettings() // Use new StandardCheckVisisbilityRedirector StandardCheckVisisbilityRedirector aRedirector; - const Rectangle aRedrawRectangle = Rectangle( Point(), aNewSize ); + const Rectangle aRedrawRectangle( Point(), aNewSize ); vcl::Region aRedrawRegion(aRedrawRectangle); pView->SdrPaintView::CompleteRedraw(pVDev,aRedrawRegion,&aRedirector); diff --git a/sd/source/ui/func/fupage.cxx b/sd/source/ui/func/fupage.cxx index 2fcf8815f7cb..6108d772bb63 100644 --- a/sd/source/ui/func/fupage.cxx +++ b/sd/source/ui/func/fupage.cxx @@ -624,7 +624,7 @@ void FuPage::ApplyItemSet( const SfxItemSet* pArgs ) // Objects can not be bigger than ViewSize Size aPageSize = mpDoc->GetSdPage(0, ePageKind)->GetSize(); - Size aViewSize = Size(aPageSize.Width() * 3, aPageSize.Height() * 2); + Size aViewSize(aPageSize.Width() * 3, aPageSize.Height() * 2); mpDoc->SetMaxObjSize(aViewSize); // if necessary, we tell Preview the new context diff --git a/sd/source/ui/unoidl/unopage.cxx b/sd/source/ui/unoidl/unopage.cxx index 6261bb6bfe37..32c8c79a08e7 100644 --- a/sd/source/ui/unoidl/unopage.cxx +++ b/sd/source/ui/unoidl/unopage.cxx @@ -1789,8 +1789,8 @@ static void refreshpage( SdDrawDocument* pDoc, const PageKind ePageKind ) const long nWidth = aPageSize.Width(); const long nHeight = aPageSize.Height(); - Point aPageOrg = Point(nWidth, nHeight / 2); - Size aViewSize = Size(nWidth * 3, nHeight * 2); + Point aPageOrg(nWidth, nHeight / 2); + Size aViewSize(nWidth * 3, nHeight * 2); pDoc->SetMaxObjSize(aViewSize); diff --git a/sd/source/ui/view/drviews1.cxx b/sd/source/ui/view/drviews1.cxx index da93cdd91532..77f3df741c54 100644 --- a/sd/source/ui/view/drviews1.cxx +++ b/sd/source/ui/view/drviews1.cxx @@ -380,7 +380,7 @@ void DrawViewShell::ChangeEditMode(EditMode eEMode, bool bIsLayerModeActive) } svtools::ColorConfig aColorConfig; - Color aFillColor = Color( aColorConfig.GetColorValue( svtools::APPBACKGROUND ).nColor ); + Color aFillColor( aColorConfig.GetColorValue( svtools::APPBACKGROUND ).nColor ); if (comphelper::LibreOfficeKit::isActive()) aFillColor = COL_TRANSPARENT; diff --git a/sd/source/ui/view/viewshe2.cxx b/sd/source/ui/view/viewshe2.cxx index 5d39817bc881..62f55be8f0a3 100644 --- a/sd/source/ui/view/viewshe2.cxx +++ b/sd/source/ui/view/viewshe2.cxx @@ -583,8 +583,8 @@ void ViewShell::SetPageSizeAndBorder(PageKind ePageKind, const Size& rNewSize, long nWidth = pPage->GetSize().Width(); long nHeight = pPage->GetSize().Height(); - Point aPageOrg = Point(nWidth, nHeight / 2); - Size aViewSize = Size(nWidth * 3, nHeight * 2); + Point aPageOrg(nWidth, nHeight / 2); + Size aViewSize(nWidth * 3, nHeight * 2); InitWindows(aPageOrg, aViewSize, Point(-1, -1), true); -- cgit