summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-19 10:37:58 +0200
committerNoel Grandin <noel@peralex.com>2015-10-19 13:08:29 +0200
commit367105e0248c7b80b60b2554d04f5f248b4259b3 (patch)
tree81b5406455f69b6c5587e7624967273ec36137e9
parent6716ceec1c5b1a2ece26f91741253b2673e6e9e2 (diff)
cleanup some local var declarations
found with git grep -nP '(\w+)\s+=\s+\g1\(' | lots-of-hand-filtering Change-Id: I598b0cfa6607823eaef09d95e610e05145c727f7
-rw-r--r--UnoControls/source/controls/progressmonitor.cxx4
-rw-r--r--chart2/source/controller/drawinglayer/DrawViewWrapper.cxx2
-rw-r--r--chart2/source/controller/main/ChartController_Insert.cxx10
-rw-r--r--chart2/source/controller/main/ChartController_Tools.cxx24
-rw-r--r--dbaccess/source/ui/app/AppDetailPageHelper.cxx4
-rw-r--r--dbaccess/source/ui/app/AppDetailView.cxx2
-rw-r--r--dbaccess/source/ui/browser/dataview.cxx2
-rw-r--r--dbaccess/source/ui/querydesign/QueryDesignView.cxx4
-rw-r--r--filter/source/flash/swfwriter1.cxx2
-rw-r--r--filter/source/svg/svgwriter.cxx6
-rw-r--r--sc/source/filter/xcl97/xcl97rec.cxx2
-rw-r--r--sc/source/ui/view/gridwin.cxx6
-rw-r--r--sc/source/ui/view/output2.cxx14
-rw-r--r--sd/source/filter/eppt/epptso.cxx4
-rw-r--r--sd/source/ui/annotations/annotationmanager.cxx2
-rw-r--r--sd/source/ui/dlg/docprev.cxx2
-rw-r--r--sd/source/ui/func/fupage.cxx2
-rw-r--r--sd/source/ui/unoidl/unopage.cxx4
-rw-r--r--sd/source/ui/view/drviews1.cxx2
-rw-r--r--sd/source/ui/view/viewshe2.cxx4
-rw-r--r--sfx2/source/appl/workwin.cxx2
-rw-r--r--sfx2/source/doc/doctempl.cxx2
-rw-r--r--svx/source/svdraw/svdoashp.cxx2
-rw-r--r--svx/source/tbxctrls/itemwin.cxx2
-rw-r--r--sw/source/core/text/txtdrop.cxx2
-rw-r--r--sw/source/filter/ww8/wrtw8esh.cxx6
-rw-r--r--sw/source/uibase/app/appopt.cxx3
-rw-r--r--vcl/osx/salframe.cxx2
28 files changed, 61 insertions, 62 deletions
diff --git a/UnoControls/source/controls/progressmonitor.cxx b/UnoControls/source/controls/progressmonitor.cxx
index 5c0e5a789a93..d3add993baea 100644
--- a/UnoControls/source/controls/progressmonitor.cxx
+++ b/UnoControls/source/controls/progressmonitor.cxx
@@ -419,8 +419,8 @@ Size SAL_CALL ProgressMonitor::getPreferredSize () throw( RuntimeException, std:
Size aTopicSize_Top = xTopicLayout_Top->getPreferredSize ();
Size aTopicSize_Bottom = xTopicLayout_Bottom->getPreferredSize ();
Size aButtonSize = xButtonLayout->getPreferredSize ();
- Rectangle aTempRectangle = m_xProgressBar->getPosSize();
- Size aProgressBarSize = Size( aTempRectangle.Width, aTempRectangle.Height );
+ Rectangle aTempRectangle = m_xProgressBar->getPosSize();
+ Size aProgressBarSize( aTempRectangle.Width, aTempRectangle.Height );
aGuard.clear ();
diff --git a/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx b/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx
index da032cc4ab73..be031a0f22e8 100644
--- a/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx
+++ b/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx
@@ -235,7 +235,7 @@ void DrawViewWrapper::setMarkHandleProvider( MarkHandleProvider* pMarkHandleProv
void DrawViewWrapper::CompleteRedraw(OutputDevice* pOut, const vcl::Region& rReg, sdr::contact::ViewObjectContactRedirector* /* pRedirector */)
{
svtools::ColorConfig aColorConfig;
- Color aFillColor = Color( aColorConfig.GetColorValue( svtools::DOCCOLOR ).nColor );
+ Color aFillColor( aColorConfig.GetColorValue( svtools::DOCCOLOR ).nColor );
this->SetApplicationBackgroundColor(aFillColor);
this->E3dView::CompleteRedraw( pOut, rReg );
}
diff --git a/chart2/source/controller/main/ChartController_Insert.cxx b/chart2/source/controller/main/ChartController_Insert.cxx
index 5ca647ffee02..ca09dce26f77 100644
--- a/chart2/source/controller/main/ChartController_Insert.cxx
+++ b/chart2/source/controller/main/ChartController_Insert.cxx
@@ -532,7 +532,7 @@ void ChartController::executeDispatch_InsertTrendlineEquation( bool bInsertR2 )
if( xEqProp.is())
{
// using assignment for broken gcc 3.3
- UndoGuard aUndoGuard = UndoGuard(
+ UndoGuard aUndoGuard(
ActionDescriptionProvider::createDescription(
ActionDescriptionProvider::INSERT, SCH_RESSTR( STR_OBJECT_CURVE_EQUATION )),
m_xUndoManager );
@@ -549,7 +549,7 @@ void ChartController::executeDispatch_InsertR2Value()
ObjectIdentifier::getObjectPropertySet( m_aSelection.getSelectedCID(), getModel() ), uno::UNO_QUERY );
if( xEqProp.is())
{
- UndoGuard aUndoGuard = UndoGuard(
+ UndoGuard aUndoGuard(
ActionDescriptionProvider::createDescription(
ActionDescriptionProvider::INSERT, SCH_RESSTR( STR_OBJECT_CURVE_EQUATION )),
m_xUndoManager );
@@ -564,7 +564,7 @@ void ChartController::executeDispatch_DeleteR2Value()
ObjectIdentifier::getObjectPropertySet( m_aSelection.getSelectedCID(), getModel() ), uno::UNO_QUERY );
if( xEqProp.is())
{
- UndoGuard aUndoGuard = UndoGuard(
+ UndoGuard aUndoGuard(
ActionDescriptionProvider::createDescription(
ActionDescriptionProvider::INSERT, SCH_RESSTR( STR_OBJECT_CURVE_EQUATION )),
m_xUndoManager );
@@ -639,7 +639,7 @@ void ChartController::executeDispatch_InsertDataLabels()
ObjectIdentifier::getDataSeriesForCID( m_aSelection.getSelectedCID(), getModel() ), uno::UNO_QUERY );
if( xSeries.is() )
{
- UndoGuard aUndoGuard = UndoGuard( ActionDescriptionProvider::createDescription( ActionDescriptionProvider::INSERT,
+ UndoGuard aUndoGuard( ActionDescriptionProvider::createDescription( ActionDescriptionProvider::INSERT,
SCH_RESSTR( STR_OBJECT_DATALABELS )),
m_xUndoManager );
DataSeriesHelper::insertDataLabelsToSeriesAndAllPoints( xSeries );
@@ -649,7 +649,7 @@ void ChartController::executeDispatch_InsertDataLabels()
void ChartController::executeDispatch_InsertDataLabel()
{
- UndoGuard aUndoGuard = UndoGuard( ActionDescriptionProvider::createDescription( ActionDescriptionProvider::INSERT,
+ UndoGuard aUndoGuard( ActionDescriptionProvider::createDescription( ActionDescriptionProvider::INSERT,
SCH_RESSTR( STR_OBJECT_LABEL )),
m_xUndoManager );
DataSeriesHelper::insertDataLabelToPoint( ObjectIdentifier::getObjectPropertySet( m_aSelection.getSelectedCID(), getModel() ) );
diff --git a/chart2/source/controller/main/ChartController_Tools.cxx b/chart2/source/controller/main/ChartController_Tools.cxx
index 2240eae61fbf..c6e01a805761 100644
--- a/chart2/source/controller/main/ChartController_Tools.cxx
+++ b/chart2/source/controller/main/ChartController_Tools.cxx
@@ -136,7 +136,7 @@ bool lcl_deleteDataCurve(
if( xRegressionCurveContainer.is())
{
- UndoGuard aUndoGuard = UndoGuard(
+ UndoGuard aUndoGuard(
ActionDescriptionProvider::createDescription(
ActionDescriptionProvider::DELETE, SCH_RESSTR( STR_OBJECT_CURVE )),
xUndoManager );
@@ -179,7 +179,7 @@ void ChartController::executeDispatch_NewArrangement()
if( xDiagram.is())
{
// using assignment for broken gcc 3.3
- UndoGuard aUndoGuard = UndoGuard(
+ UndoGuard aUndoGuard(
SCH_RESSTR( STR_ACTION_REARRANGE_CHART ),
m_xUndoManager );
ControllerLockGuardUNO aCtlLockGuard( xModel );
@@ -235,7 +235,7 @@ void ChartController::executeDispatch_ScaleText()
{
SolarMutexGuard aSolarGuard;
// using assignment for broken gcc 3.3
- UndoGuard aUndoGuard = UndoGuard(
+ UndoGuard aUndoGuard(
SCH_RESSTR( STR_ACTION_SCALE_TEXT ),
m_xUndoManager );
ControllerLockGuardUNO aCtlLockGuard( getModel() );
@@ -616,7 +616,7 @@ bool ChartController::executeDispatch_Delete()
case OBJECTTYPE_TITLE:
{
// using assignment for broken gcc 3.3
- UndoGuard aUndoGuard = UndoGuard(
+ UndoGuard aUndoGuard(
ActionDescriptionProvider::createDescription(
ActionDescriptionProvider::DELETE, SCH_RESSTR( STR_OBJECT_TITLE )),
m_xUndoManager );
@@ -635,7 +635,7 @@ bool ChartController::executeDispatch_Delete()
if( xLegendProp.is())
{
// using assignment for broken gcc 3.3
- UndoGuard aUndoGuard = UndoGuard(
+ UndoGuard aUndoGuard(
ActionDescriptionProvider::createDescription(
ActionDescriptionProvider::DELETE, SCH_RESSTR( STR_OBJECT_LEGEND )),
m_xUndoManager );
@@ -682,7 +682,7 @@ bool ChartController::executeDispatch_Delete()
if( xRegCurveCnt.is())
{
// using assignment for broken gcc 3.3
- UndoGuard aUndoGuard = UndoGuard(
+ UndoGuard aUndoGuard(
ActionDescriptionProvider::createDescription(
ActionDescriptionProvider::DELETE, SCH_RESSTR( STR_OBJECT_AVERAGE_LINE )),
m_xUndoManager );
@@ -708,7 +708,7 @@ bool ChartController::executeDispatch_Delete()
{
uno::Reference< frame::XModel > xModel( getModel() );
// using assignment for broken gcc 3.3
- UndoGuard aUndoGuard = UndoGuard(
+ UndoGuard aUndoGuard(
ActionDescriptionProvider::createDescription(
ActionDescriptionProvider::DELETE, SCH_RESSTR( STR_OBJECT_CURVE_EQUATION )),
m_xUndoManager );
@@ -742,7 +742,7 @@ bool ChartController::executeDispatch_Delete()
uno::Reference< frame::XModel > xModel( getModel() );
// using assignment for broken gcc 3.3
- UndoGuard aUndoGuard = UndoGuard(
+ UndoGuard aUndoGuard(
ActionDescriptionProvider::createDescription(
ActionDescriptionProvider::DELETE, SCH_RESSTR( nId )),
m_xUndoManager );
@@ -765,7 +765,7 @@ bool ChartController::executeDispatch_Delete()
ObjectIdentifier::getObjectPropertySet( aCID, getModel() );
if( xObjectProperties.is() )
{
- UndoGuard aUndoGuard = UndoGuard(
+ UndoGuard aUndoGuard(
ActionDescriptionProvider::createDescription(
ActionDescriptionProvider::DELETE,
SCH_RESSTR( aObjectType == OBJECTTYPE_DATA_LABEL ? STR_OBJECT_LABEL : STR_OBJECT_DATALABELS )),
@@ -832,7 +832,7 @@ bool ChartController::executeDispatch_Delete()
void ChartController::executeDispatch_ToggleLegend()
{
Reference< frame::XModel > xModel( getModel() );
- UndoGuard aUndoGuard = UndoGuard(
+ UndoGuard aUndoGuard(
SCH_RESSTR( STR_ACTION_TOGGLE_LEGEND ), m_xUndoManager );
ChartModel& rModel = dynamic_cast<ChartModel&>(*xModel.get());
Reference< beans::XPropertySet > xLegendProp( LegendHelper::getLegend(rModel), uno::UNO_QUERY );
@@ -867,7 +867,7 @@ void ChartController::executeDispatch_ToggleLegend()
void ChartController::executeDispatch_ToggleGridHorizontal()
{
Reference< frame::XModel > xModel( getModel() );
- UndoGuard aUndoGuard = UndoGuard(
+ UndoGuard aUndoGuard(
SCH_RESSTR( STR_ACTION_TOGGLE_GRID_HORZ ), m_xUndoManager );
Reference< chart2::XDiagram > xDiagram( ChartModelHelper::findDiagram( getModel() ));
if( xDiagram.is())
@@ -901,7 +901,7 @@ void ChartController::executeDispatch_ToggleGridHorizontal()
void ChartController::executeDispatch_ToggleGridVertical()
{
Reference< frame::XModel > xModel( getModel() );
- UndoGuard aUndoGuard = UndoGuard(
+ UndoGuard aUndoGuard(
SCH_RESSTR( STR_ACTION_TOGGLE_GRID_VERTICAL ), m_xUndoManager );
Reference< chart2::XDiagram > xDiagram( ChartModelHelper::findDiagram( getModel() ));
if( xDiagram.is())
diff --git a/dbaccess/source/ui/app/AppDetailPageHelper.cxx b/dbaccess/source/ui/app/AppDetailPageHelper.cxx
index 73e00dba2604..f6b73142e794 100644
--- a/dbaccess/source/ui/app/AppDetailPageHelper.cxx
+++ b/dbaccess/source/ui/app/AppDetailPageHelper.cxx
@@ -727,7 +727,7 @@ void OAppDetailPageHelper::fillNames( const Reference< XNameAccess >& _xContaine
{
pEntry = pList->InsertEntry( *pIter, _pParent );
- Image aImage = Image( ModuleRes( _nImageId ) );
+ Image aImage{ ModuleRes( _nImageId ) };
pList->SetExpandedEntryBmp( pEntry, aImage );
pList->SetCollapsedEntryBmp( pEntry, aImage );
}
@@ -857,7 +857,7 @@ SvTreeListEntry* OAppDetailPageHelper::elementAdded(ElementType _eType,const OUS
{
pRet = pTreeView->InsertEntry( _rName, pEntry );
- Image aImage = Image( ModuleRes( nImageId ) );
+ Image aImage{ ModuleRes( nImageId ) };
pTreeView->SetExpandedEntryBmp( pRet, aImage );
pTreeView->SetCollapsedEntryBmp( pRet, aImage );
}
diff --git a/dbaccess/source/ui/app/AppDetailView.cxx b/dbaccess/source/ui/app/AppDetailView.cxx
index 8651666c8f09..7e2cdf6d46a3 100644
--- a/dbaccess/source/ui/app/AppDetailView.cxx
+++ b/dbaccess/source/ui/app/AppDetailView.cxx
@@ -500,7 +500,7 @@ void OTasksWindow::fillTaskEntryList( const TaskEntryList& _rList )
SvTreeListEntry* pEntry = m_aCreation->InsertEntry( pTask->sTitle );
pEntry->SetUserData( new TaskEntry( *pTask ) );
- Image aImage = Image( *pImages );
+ Image aImage( *pImages );
m_aCreation->SetExpandedEntryBmp( pEntry, aImage );
m_aCreation->SetCollapsedEntryBmp( pEntry, aImage );
}
diff --git a/dbaccess/source/ui/browser/dataview.cxx b/dbaccess/source/ui/browser/dataview.cxx
index 00002a84a6e5..a722433db8d8 100644
--- a/dbaccess/source/ui/browser/dataview.cxx
+++ b/dbaccess/source/ui/browser/dataview.cxx
@@ -92,7 +92,7 @@ namespace dbaui
Rectangle aPlayground( _rPlayground );
// position the separator
- const Size aSeparatorSize = Size( aPlayground.GetWidth(), 2 );
+ const Size aSeparatorSize( aPlayground.GetWidth(), 2 );
m_aSeparator->SetPosSizePixel( aPlayground.TopLeft(), aSeparatorSize );
aPlayground.Top() += aSeparatorSize.Height() + 1;
diff --git a/dbaccess/source/ui/querydesign/QueryDesignView.cxx b/dbaccess/source/ui/querydesign/QueryDesignView.cxx
index e9b9512551ff..64c59f9e7c99 100644
--- a/dbaccess/source/ui/querydesign/QueryDesignView.cxx
+++ b/dbaccess/source/ui/querydesign/QueryDesignView.cxx
@@ -2603,8 +2603,8 @@ void OQueryDesignView::resizeDocumentView(Rectangle& _rPlayground)
}
// normalize the split pos
- Point aSplitPos = Point( _rPlayground.Left(), nSplitPos );
- Size aSplitSize = Size( _rPlayground.GetSize().Width(), m_aSplitter->GetSizePixel().Height() );
+ Point aSplitPos( _rPlayground.Left(), nSplitPos );
+ Size aSplitSize( _rPlayground.GetSize().Width(), m_aSplitter->GetSizePixel().Height() );
if( ( aSplitPos.Y() + aSplitSize.Height() ) > ( aPlaygroundSize.Height() ))
aSplitPos.Y() = aPlaygroundSize.Height() - aSplitSize.Height();
diff --git a/filter/source/flash/swfwriter1.cxx b/filter/source/flash/swfwriter1.cxx
index ac7f94dfed62..996db16554f6 100644
--- a/filter/source/flash/swfwriter1.cxx
+++ b/filter/source/flash/swfwriter1.cxx
@@ -450,7 +450,7 @@ void Writer::Impl_writeText( const Point& rPos, const OUString& rText, const lon
nOff += 6;
Color aTextColor( mpVDev->GetTextColor() );
- Color aShadowColor = Color( COL_BLACK );
+ Color aShadowColor( COL_BLACK );
if ( (aTextColor.GetColor() == COL_BLACK) || (aTextColor.GetLuminance() < 8) )
aShadowColor = Color( COL_LIGHTGRAY );
diff --git a/filter/source/svg/svgwriter.cxx b/filter/source/svg/svgwriter.cxx
index 249791e4c440..44cdef2b656b 100644
--- a/filter/source/svg/svgwriter.cxx
+++ b/filter/source/svg/svgwriter.cxx
@@ -2360,7 +2360,7 @@ void SVGActionWriter::ImplWriteText( const Point& rPos, const OUString& rText,
nOff += 6;
Color aTextColor( mpVDev->GetTextColor() );
- Color aShadowColor = Color( COL_BLACK );
+ Color aShadowColor( COL_BLACK );
if ( (aTextColor.GetColor() == COL_BLACK) || (aTextColor.GetLuminance() < 8) )
aShadowColor = Color( COL_LIGHTGRAY );
@@ -2591,8 +2591,8 @@ void SVGActionWriter::ImplWriteBmp( const BitmapEx& rBmpEx,
{
if( !!rBmpEx )
{
- BitmapEx aBmpEx( rBmpEx );
- Point aPoint = Point();
+ BitmapEx aBmpEx( rBmpEx );
+ Point aPoint;
const Rectangle aBmpRect( aPoint, rBmpEx.GetSizePixel() );
const Rectangle aSrcRect( rSrcPt, rSrcSz );
diff --git a/sc/source/filter/xcl97/xcl97rec.cxx b/sc/source/filter/xcl97/xcl97rec.cxx
index 189574c73303..904ce237c57f 100644
--- a/sc/source/filter/xcl97/xcl97rec.cxx
+++ b/sc/source/filter/xcl97/xcl97rec.cxx
@@ -512,7 +512,7 @@ static void lcl_FillProps( EscherPropertyContainer& rPropOpt, SdrObject* pCaptio
// If the Colour is the same as the 'ToolTip' System colour then
// use the default rather than the explicit colour value. This will
// be incorrect where user has chosen to use this colour explicity.
- Color aColor = Color( (sal_uInt8)nValue, (sal_uInt8)( nValue >> 8 ), (sal_uInt8)( nValue >> 16 ) );
+ Color aColor( (sal_uInt8)nValue, (sal_uInt8)( nValue >> 8 ), (sal_uInt8)( nValue >> 16 ) );
const StyleSettings& rSett = Application::GetSettings().GetStyleSettings();
if( aColor == rSett.GetHelpColor().GetColor() )
{
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 32b69d08fbe8..676cb0653b57 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -5381,7 +5381,7 @@ bool ScGridWindow::GetEditUrl( const Point& rPos,
MapMode aEditMode = pViewData->GetLogicMode(eWhich); // without draw scaleing
Rectangle aLogicEdit = PixelToLogic( aEditRect, aEditMode );
long nThisColLogic = aLogicEdit.Right() - aLogicEdit.Left() + 1;
- Size aPaperSize = Size( 1000000, 1000000 );
+ Size aPaperSize( 1000000, 1000000 );
if (aCell.meType == CELLTYPE_FORMULA)
{
long nSizeX = 0;
@@ -5484,7 +5484,7 @@ bool ScGridWindow::IsSpellErrorAtPos( const Point& rPos, SCCOL nCol1, SCROW nRow
std::shared_ptr<ScFieldEditEngine> pEngine = createEditEngine(pDocSh, *pPattern);
- Size aPaperSize = Size(1000000, 1000000);
+ Size aPaperSize(1000000, 1000000);
pEngine->SetPaperSize(aPaperSize);
if (aCell.meType == CELLTYPE_EDIT)
@@ -6212,7 +6212,7 @@ void ScGridWindow::UpdateAutoFillOverlay()
sal_Int32 nScale = GetDPIScaleFactor();
// Size should be even
- Size aFillHandleSize = Size(6 * nScale, 6 * nScale);
+ Size aFillHandleSize(6 * nScale, 6 * nScale);
Point aFillPos = pViewData->GetScrPos( nX, nY, eWhich, true );
long nSizeXPix;
diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx
index c2690f9bb8ae..f3c878a16da0 100644
--- a/sc/source/ui/view/output2.cxx
+++ b/sc/source/ui/view/output2.cxx
@@ -2803,7 +2803,7 @@ void ScOutputData::DrawEditStandard(DrawEditParam& rParam)
// Initial page size - large for normal text, cell size for automatic line breaks
- Size aPaperSize = Size( 1000000, 1000000 );
+ Size aPaperSize( 1000000, 1000000 );
if (rParam.mbBreak)
{
// call GetOutputArea with nNeeded=0, to get only the cell width
@@ -3298,7 +3298,7 @@ void ScOutputData::DrawEditBottomTop(DrawEditParam& rParam)
// Initial page size - large for normal text, cell size for automatic line breaks
- Size aPaperSize = Size( 1000000, 1000000 );
+ Size aPaperSize( 1000000, 1000000 );
if (rParam.mbBreak)
{
// call GetOutputArea with nNeeded=0, to get only the cell width
@@ -3558,7 +3558,7 @@ void ScOutputData::DrawEditTopBottom(DrawEditParam& rParam)
// Initial page size - large for normal text, cell size for automatic line breaks
- Size aPaperSize = Size( 1000000, 1000000 );
+ Size aPaperSize( 1000000, 1000000 );
if (rParam.hasLineBreak())
{
// call GetOutputArea with nNeeded=0, to get only the cell width
@@ -3825,7 +3825,7 @@ void ScOutputData::DrawEditStacked(DrawEditParam& rParam)
// Initial page size - large for normal text, cell size for automatic line breaks
- Size aPaperSize = Size( 1000000, 1000000 );
+ Size aPaperSize( 1000000, 1000000 );
// call GetOutputArea with nNeeded=0, to get only the cell width
//! handle nArrY == 0
@@ -4179,7 +4179,7 @@ void ScOutputData::DrawEditAsianVertical(DrawEditParam& rParam)
// Initial page size - large for normal text, cell size for automatic line breaks
- Size aPaperSize = Size( 1000000, 1000000 );
+ Size aPaperSize( 1000000, 1000000 );
// call GetOutputArea with nNeeded=0, to get only the cell width
//! handle nArrY == 0
@@ -4864,7 +4864,7 @@ void ScOutputData::DrawRotated(bool bPixelToLogic)
}
}
- Size aPaperSize = Size( 1000000, 1000000 );
+ Size aPaperSize( 1000000, 1000000 );
if (eOrient==SVX_ORIENTATION_STACKED)
aPaperSize.Width() = nOutWidth; // to center
else if (bBreak)
@@ -5000,7 +5000,7 @@ void ScOutputData::DrawRotated(bool bPixelToLogic)
if (!bHidden)
{
bool bClip = false;
- Size aClipSize = Size( nScrX+nScrW-nStartX, nScrY+nScrH-nStartY );
+ Size aClipSize( nScrX+nScrW-nStartX, nScrY+nScrH-nStartY );
// go on writing
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);
diff --git a/sfx2/source/appl/workwin.cxx b/sfx2/source/appl/workwin.cxx
index b03c12d44542..d77c181936af 100644
--- a/sfx2/source/appl/workwin.cxx
+++ b/sfx2/source/appl/workwin.cxx
@@ -2489,7 +2489,7 @@ void SfxWorkWindow::EndAutoShow_Impl( Point aPos )
if ( p && p->IsAutoHide() )
{
Point aLocalPos = p->ScreenToOutputPixel( aPos );
- Point aEmptyPoint = Point();
+ Point aEmptyPoint;
Rectangle aRect( aEmptyPoint, p->GetSizePixel() );
if ( !aRect.IsInside( aLocalPos ) )
p->FadeOut();
diff --git a/sfx2/source/doc/doctempl.cxx b/sfx2/source/doc/doctempl.cxx
index a62ca784adcb..402db40b9ea5 100644
--- a/sfx2/source/doc/doctempl.cxx
+++ b/sfx2/source/doc/doctempl.cxx
@@ -1643,7 +1643,7 @@ void SfxDocTemplate_Impl::CreateFromHierarchy( Content &rTemplRoot )
OUString aTitle( xRow->getString( 1 ) );
OUString aId = xContentAccess->queryContentIdentifierString();
- Content aContent = Content( aId, aCmdEnv, comphelper::getProcessComponentContext() );
+ Content aContent( aId, aCmdEnv, comphelper::getProcessComponentContext() );
AddRegion( aTitle, aContent );
}
diff --git a/svx/source/svdraw/svdoashp.cxx b/svx/source/svdraw/svdoashp.cxx
index 72b86ac2f629..b15e66bc1ada 100644
--- a/svx/source/svdraw/svdoashp.cxx
+++ b/svx/source/svdraw/svdoashp.cxx
@@ -3041,7 +3041,7 @@ void SdrObjCustomShape::TRSetBaseGeometry(const basegfx::B2DHomMatrix& rMatrix,
}
// build and set BaseRect (use scale)
- Point aPoint = Point();
+ Point aPoint;
Size aSize(FRound(aScale.getX()), FRound(aScale.getY()));
// fdo#47434 We need a valid rectangle here
if( !aSize.Height() ) aSize.setHeight( 1 );
diff --git a/svx/source/tbxctrls/itemwin.cxx b/svx/source/tbxctrls/itemwin.cxx
index cabc114e1529..bbd4556c6f84 100644
--- a/svx/source/tbxctrls/itemwin.cxx
+++ b/svx/source/tbxctrls/itemwin.cxx
@@ -253,7 +253,7 @@ SvxMetricField::SvxMetricField(
, ePoolUnit(SFX_MAPUNIT_CM)
, mxFrame(rFrame)
{
- Size aSize = Size(GetTextWidth( OUString("99,99mm") ),GetTextHeight());
+ Size aSize(GetTextWidth( OUString("99,99mm") ),GetTextHeight());
aSize.Width() += 20;
aSize.Height() += 6;
SetSizePixel( aSize );
diff --git a/sw/source/core/text/txtdrop.cxx b/sw/source/core/text/txtdrop.cxx
index 553719acb6dc..3cbe90733200 100644
--- a/sw/source/core/text/txtdrop.cxx
+++ b/sw/source/core/text/txtdrop.cxx
@@ -769,7 +769,7 @@ void SwDropCapCache::CalcFontSize( SwDropPortion* pDrop, SwTextFormatInfo &rInf
// Get without proportion
const sal_uInt8 nOldProp = rFnt.GetPropr();
rFnt.SetProportion( 100 );
- Size aOldSize = Size( 0, rFnt.GetHeight( rFnt.GetActual() ) );
+ Size aOldSize( 0, rFnt.GetHeight( rFnt.GetActual() ) );
Size aNewSize( 0, ( nFactor * nCurrHeight ) / 1000 );
rFnt.SetSize( aNewSize, rFnt.GetActual() );
diff --git a/sw/source/filter/ww8/wrtw8esh.cxx b/sw/source/filter/ww8/wrtw8esh.cxx
index 06f82d931056..281278e1c73e 100644
--- a/sw/source/filter/ww8/wrtw8esh.cxx
+++ b/sw/source/filter/ww8/wrtw8esh.cxx
@@ -1632,7 +1632,7 @@ sal_Int32 SwBasicEscherEx::WriteGrfBullet(const Graphic& rGrf)
{
aSize = OutputDevice::LogicToLogic( aSize,rGrf.GetPrefMapMode(), aMap100mm );
}
- Point aEmptyPoint = Point();
+ Point aEmptyPoint;
Rectangle aRect( aEmptyPoint, aSize );
sal_uInt32 nBlibId = mxGlobal->GetBlibID( *(mxGlobal->QueryPictureStream()), aUniqueId,aRect, NULL, 0 );
if (nBlibId)
@@ -1722,7 +1722,7 @@ sal_Int32 SwBasicEscherEx::WriteGrfFlyFrame(const SwFrameFormat& rFormat, sal_uI
aGraphic.GetPrefMapMode(), aMap100mm );
}
- Point aEmptyPoint = Point();
+ Point aEmptyPoint;
Rectangle aRect( aEmptyPoint, aSize );
sal_uInt32 nBlibId = mxGlobal->GetBlibID( *QueryPictureStream(),
@@ -1928,7 +1928,7 @@ void SwBasicEscherEx::WriteBrushAttr(const SvxBrushItem &rBrush,
rGraphic.GetPrefMapMode(), aMap100mm);
}
- Point aEmptyPoint = Point();
+ Point aEmptyPoint;
Rectangle aRect(aEmptyPoint, aSize);
sal_uInt32 nBlibId = mxGlobal->GetBlibID( *QueryPictureStream(),
diff --git a/sw/source/uibase/app/appopt.cxx b/sw/source/uibase/app/appopt.cxx
index 7a302957c543..b6747379c4bb 100644
--- a/sw/source/uibase/app/appopt.cxx
+++ b/sw/source/uibase/app/appopt.cxx
@@ -355,8 +355,7 @@ void SwModule::ApplyItemSet( sal_uInt16 nId, const SfxItemSet& rSet )
aViewOpt.SetSynchronize(pGridItem->GetSynchronize());
if( aViewOpt.IsGridVisible() != pGridItem->GetGridVisible() )
aViewOpt.SetGridVisible( pGridItem->GetGridVisible());
- Size aSize = Size( pGridItem->GetFieldDrawX() ,
- pGridItem->GetFieldDrawY() );
+ Size aSize( pGridItem->GetFieldDrawX(), pGridItem->GetFieldDrawY() );
if( aViewOpt.GetSnapSize() != aSize )
aViewOpt.SetSnapSize( aSize );
short nDiv = (short)pGridItem->GetFieldDivisionX() ;
diff --git a/vcl/osx/salframe.cxx b/vcl/osx/salframe.cxx
index 275ba8977e17..c4f03195d72f 100644
--- a/vcl/osx/salframe.cxx
+++ b/vcl/osx/salframe.cxx
@@ -1136,7 +1136,7 @@ void AquaSalFrame::UpdateSettings( AllSettings& rSettings )
StyleSettings aStyleSettings = rSettings.GetStyleSettings();
// Background Color
- Color aBackgroundColor = Color( 0xEC, 0xEC, 0xEC );
+ Color aBackgroundColor( 0xEC, 0xEC, 0xEC );
aStyleSettings.Set3DColors( aBackgroundColor );
aStyleSettings.SetFaceColor( aBackgroundColor );
Color aInactiveTabColor( aBackgroundColor );