diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-19 10:37:58 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-10-19 13:08:29 +0200 |
commit | 367105e0248c7b80b60b2554d04f5f248b4259b3 (patch) | |
tree | 81b5406455f69b6c5587e7624967273ec36137e9 /sw | |
parent | 6716ceec1c5b1a2ece26f91741253b2673e6e9e2 (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 'sw')
-rw-r--r-- | sw/source/core/text/txtdrop.cxx | 2 | ||||
-rw-r--r-- | sw/source/filter/ww8/wrtw8esh.cxx | 6 | ||||
-rw-r--r-- | sw/source/uibase/app/appopt.cxx | 3 |
3 files changed, 5 insertions, 6 deletions
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() ; |