summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-03-03 09:59:31 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-03-04 00:51:57 +0000
commitc6223049651d6607101ef04271773e478a429c8a (patch)
treef2bfb8c976896009409ae47780c324d3a9b51c77 /svx
parent242ed97d9a74a08363e1306452bba20f06d673e4 (diff)
V813: Decreased performance
Change-Id: Ica2563d9e8da15e19eb38246d4de54a1fcb75655
Diffstat (limited to 'svx')
-rw-r--r--svx/source/engine3d/view3d.cxx12
-rw-r--r--svx/source/svdraw/svdedtv1.cxx20
2 files changed, 16 insertions, 16 deletions
diff --git a/svx/source/engine3d/view3d.cxx b/svx/source/engine3d/view3d.cxx
index 1a506e05081c..399bd234a602 100644
--- a/svx/source/engine3d/view3d.cxx
+++ b/svx/source/engine3d/view3d.cxx
@@ -833,7 +833,7 @@ void E3dView::ImpCreate3DObject(E3dScene* pScene, SdrObject* pObj, bool bExtrude
}
}
-void E3dView::ConvertMarkedObjTo3D(bool bExtrude, basegfx::B2DPoint aPnt1, basegfx::B2DPoint aPnt2)
+void E3dView::ConvertMarkedObjTo3D(bool bExtrude, const basegfx::B2DPoint& rPnt1, const basegfx::B2DPoint& rPnt2)
{
if(AreObjectsMarked())
{
@@ -867,11 +867,11 @@ void E3dView::ConvertMarkedObjTo3D(bool bExtrude, basegfx::B2DPoint aPnt1, baseg
if(!bExtrude)
{
// Create transformation for the polygons rotating body
- if(aPnt1 != aPnt2)
+ if (rPnt1 != rPnt2)
{
// Rotation around control point #1 with set angle
// for 3D coordinates
- basegfx::B2DPoint aDiff(aPnt1 - aPnt2);
+ basegfx::B2DPoint aDiff(rPnt1 - rPnt2);
fRot3D = atan2(aDiff.getY(), aDiff.getX()) - F_PI2;
if(basegfx::fTools::equalZero(fabs(fRot3D)))
@@ -879,15 +879,15 @@ void E3dView::ConvertMarkedObjTo3D(bool bExtrude, basegfx::B2DPoint aPnt1, baseg
if(fRot3D != 0.0)
{
- aLatheMat = basegfx::tools::createRotateAroundPoint(aPnt2, -fRot3D)
+ aLatheMat = basegfx::tools::createRotateAroundPoint(rPnt2, -fRot3D)
* aLatheMat;
}
}
- if(aPnt2.getX() != 0.0)
+ if (rPnt2.getX() != 0.0)
{
// Translation to Y=0 - axis
- aLatheMat.translate(-aPnt2.getX(), 0.0);
+ aLatheMat.translate(-rPnt2.getX(), 0.0);
}
else
{
diff --git a/svx/source/svdraw/svdedtv1.cxx b/svx/source/svdraw/svdedtv1.cxx
index 4a3cb0fc81a5..4f1a758d40b6 100644
--- a/svx/source/svdraw/svdedtv1.cxx
+++ b/svx/source/svdraw/svdedtv1.cxx
@@ -1445,18 +1445,18 @@ SfxItemSet SdrEditView::GetGeoAttrFromMarked() const
return aRetSet;
}
-Point ImpGetPoint(Rectangle aRect, RECT_POINT eRP)
+Point ImpGetPoint(const Rectangle& rRect, RECT_POINT eRP)
{
switch(eRP) {
- case RP_LT: return aRect.TopLeft();
- case RP_MT: return aRect.TopCenter();
- case RP_RT: return aRect.TopRight();
- case RP_LM: return aRect.LeftCenter();
- case RP_MM: return aRect.Center();
- case RP_RM: return aRect.RightCenter();
- case RP_LB: return aRect.BottomLeft();
- case RP_MB: return aRect.BottomCenter();
- case RP_RB: return aRect.BottomRight();
+ case RP_LT: return rRect.TopLeft();
+ case RP_MT: return rRect.TopCenter();
+ case RP_RT: return rRect.TopRight();
+ case RP_LM: return rRect.LeftCenter();
+ case RP_MM: return rRect.Center();
+ case RP_RM: return rRect.RightCenter();
+ case RP_LB: return rRect.BottomLeft();
+ case RP_MB: return rRect.BottomCenter();
+ case RP_RB: return rRect.BottomRight();
}
return Point(); // Should not happen!
}