diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-05-05 12:24:47 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-05-05 15:08:17 +0200 |
commit | 7b506496fdff341d2288fa36bd4300a92cf979a9 (patch) | |
tree | 6fe7ec652c65f8f6acff1e909b5e0f74e6f5ad33 /svx/source/svdraw/svdoashp.cxx | |
parent | 134fb0fdecb898b1568f57e8c9dc8c3528b0d1e0 (diff) |
Don't initialize variables only to reset later
Change-Id: I38d618216099e218827d205e8acaab3aef0c744c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115082
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svx/source/svdraw/svdoashp.cxx')
-rw-r--r-- | svx/source/svdraw/svdoashp.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/svx/source/svdraw/svdoashp.cxx b/svx/source/svdraw/svdoashp.cxx index e5ccc84e7cae..bd0a4b1bc834 100644 --- a/svx/source/svdraw/svdoashp.cxx +++ b/svx/source/svdraw/svdoashp.cxx @@ -2515,7 +2515,6 @@ bool SdrObjCustomShape::AdjustTextFrameWidthAndHeight() } void SdrObjCustomShape::TakeTextEditArea(Size* pPaperMin, Size* pPaperMax, tools::Rectangle* pViewInit, tools::Rectangle* pViewMin) const { - Size aPaperMin,aPaperMax; tools::Rectangle aViewInit; TakeTextAnchorRect( aViewInit ); if ( aGeo.nRotationAngle ) @@ -2562,11 +2561,8 @@ void SdrObjCustomShape::TakeTextEditArea(Size* pPaperMin, Size* pPaperMax, tools nMinWdt = nMaxWdt; } } - aPaperMax.setWidth(nMaxWdt ); - aPaperMax.setHeight(nMaxHgt ); - - aPaperMin.setWidth(nMinWdt ); - aPaperMin.setHeight(nMinHgt ); + Size aPaperMax(nMaxWdt, nMaxHgt); + Size aPaperMin(nMinWdt, nMinHgt); if ( pViewMin ) { |