summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-08-18 12:28:31 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-08-18 18:19:09 +0200
commit4dbe4a9313d9844c10f71b29a77218d31bc6f3b3 (patch)
treecaf0ca4ceb3cbbb2aaf1255cebbcb8b38d6d45c5 /oox
parent9e1aee666fa48b768c829bbc707f47a98250df1e (diff)
loplugin:passstuffbyref
Change-Id: I4f01eb3842ef198f02af274f54afb2760c820a4b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120655 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/shape.cxx6
-rw-r--r--oox/source/export/DMLPresetShapeExport.cxx6
2 files changed, 6 insertions, 6 deletions
diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx
index f4d5a7c576ec..b1567e09ef33 100644
--- a/oox/source/drawingml/shape.cxx
+++ b/oox/source/drawingml/shape.cxx
@@ -660,11 +660,11 @@ void lcl_doSpecialMSOWidthHeightToggle(basegfx::B2DHomMatrix& aTransformation)
return;
}
-void lcl_RotateAtCenter(basegfx::B2DHomMatrix& aTransformation, const sal_Int32& rMSORotationAngle)
+void lcl_RotateAtCenter(basegfx::B2DHomMatrix& aTransformation,sal_Int32 nMSORotationAngle)
{
- if (rMSORotationAngle == 0)
+ if (nMSORotationAngle == 0)
return;
- double fRad = basegfx::deg2rad(rMSORotationAngle / 60000.0);
+ double fRad = basegfx::deg2rad(nMSORotationAngle / 60000.0);
basegfx::B2DPoint aCenter(0.5, 0.5);
aCenter *= aTransformation;
aTransformation.translate(-aCenter);
diff --git a/oox/source/export/DMLPresetShapeExport.cxx b/oox/source/export/DMLPresetShapeExport.cxx
index 9da095bf2dc3..b3c405f2f31e 100644
--- a/oox/source/export/DMLPresetShapeExport.cxx
+++ b/oox/source/export/DMLPresetShapeExport.cxx
@@ -95,15 +95,15 @@ DMLPresetShapeExporter::~DMLPresetShapeExporter(){
bool DMLPresetShapeExporter::HasHandleValue() { return m_bHasHandleValues; }
-OUString DMLPresetShapeExporter::GetShapeType() { return m_sPresetShapeType; }
+const OUString& DMLPresetShapeExporter::GetShapeType() { return m_sPresetShapeType; }
-css::uno::Sequence<css::uno::Sequence<css::beans::PropertyValue>>
+const css::uno::Sequence<css::uno::Sequence<css::beans::PropertyValue>>&
DMLPresetShapeExporter::GetHandleValues()
{
return m_HandleValues;
};
-css::uno::Sequence<css::drawing::EnhancedCustomShapeAdjustmentValue>
+const css::uno::Sequence<css::drawing::EnhancedCustomShapeAdjustmentValue>&
DMLPresetShapeExporter::GetAdjustmentValues()
{
return m_AdjustmentValues;