summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2015-05-25 05:12:49 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2015-05-26 00:19:19 +0000
commitaf75d7a4c99414fabbd31b9df590266d28574fb1 (patch)
treea055bb3c110026ce8208289ec77ed74223971a4d /svx
parent692c886f937c525d6bfcb541917a5114b085efa9 (diff)
SdrSnapView: initializae members in the constructor
remove ClearVars() which was only use by the constructor instead initialize properly things in the constructor itself Change-Id: I20a0ea26c5dce680844f81cf85ee72e1809a7068 Reviewed-on: https://gerrit.libreoffice.org/15890 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdsnpv.cxx66
1 files changed, 29 insertions, 37 deletions
diff --git a/svx/source/svdraw/svdsnpv.cxx b/svx/source/svdraw/svdsnpv.cxx
index 070f4c40397e..ba2cc9dd9169 100644
--- a/svx/source/svdraw/svdsnpv.cxx
+++ b/svx/source/svdraw/svdsnpv.cxx
@@ -174,44 +174,36 @@ void ImplHelpLineOverlay::SetPosition(const basegfx::B2DPoint& rNewPosition)
}
-void SdrSnapView::ClearVars()
+SdrSnapView::SdrSnapView(SdrModel* pModel1, OutputDevice* pOut)
+ : SdrPaintView(pModel1,pOut)
+ , mpPageOriginOverlay(0L)
+ , mpHelpLineOverlay(0L)
+ , nMagnSizPix(4)
+ , nSnapAngle(1500)
+ , nEliminatePolyPointLimitAngle(0)
+ , eCrookMode(SDRCROOK_ROTATE)
+ , bSnapEnab(true)
+ , bGridSnap(true)
+ , bSnapTo1Pix(true)
+ , bBordSnap(true)
+ , bHlplSnap(true)
+ , bOFrmSnap(true)
+ , bOPntSnap(false)
+ , bOConSnap(true)
+ , bMoveMFrmSnap(true)
+ , bMoveOFrmSnap(true)
+ , bMoveOPntSnap(true)
+ , bMoveOConSnap(true)
+ , bMoveSnapOnlyTopLeft(false)
+ , bOrtho(false)
+ , bBigOrtho(true)
+ , bAngleSnapEnab(false)
+ , bMoveOnlyDragging(false)
+ , bSlantButShear(false)
+ , bCrookNoContortion(false)
+ , bHlplFixed(false)
+ , bEliminatePolyPoints(false)
{
- nMagnSizPix=4;
- bSnapEnab=true;
- bGridSnap=true;
- bSnapTo1Pix=true;
- bBordSnap=true;
- bHlplSnap=true;
- bOFrmSnap=true;
- bOPntSnap=false;
- bOConSnap=true;
- bMoveMFrmSnap=true;
- bMoveOFrmSnap=true;
- bMoveOPntSnap=true;
- bMoveOConSnap=true;
- bMoveSnapOnlyTopLeft=false;
- bOrtho=false;
- bBigOrtho=true;
- nSnapAngle=1500;
- bAngleSnapEnab=false;
- bMoveOnlyDragging=false;
- bSlantButShear=false;
- bCrookNoContortion=false;
- eCrookMode=SDRCROOK_ROTATE;
- bHlplFixed=false;
- bEliminatePolyPoints=false;
- nEliminatePolyPointLimitAngle=0;
-
- BrkSetPageOrg();
- BrkDragHelpLine();
-}
-
-SdrSnapView::SdrSnapView(SdrModel* pModel1, OutputDevice* pOut):
- SdrPaintView(pModel1,pOut),
- mpPageOriginOverlay(0L),
- mpHelpLineOverlay(0L)
-{
- ClearVars();
}
SdrSnapView::~SdrSnapView()