summaryrefslogtreecommitdiff
path: root/svx
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 /svx
parent6716ceec1c5b1a2ece26f91741253b2673e6e9e2 (diff)
cleanup some local var declarations
found with git grep -nP '(\w+)\s+=\s+\g1\(' | lots-of-hand-filtering Change-Id: I598b0cfa6607823eaef09d95e610e05145c727f7
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdoashp.cxx2
-rw-r--r--svx/source/tbxctrls/itemwin.cxx2
2 files changed, 2 insertions, 2 deletions
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 );