summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdoole2.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-13 13:32:22 +0200
committerNoel Grandin <noel@peralex.com>2016-04-14 09:21:39 +0200
commit40f8d2566022140ca3f2d45d7cbd8b7ab51125ed (patch)
tree4a8bd6baf43f3789425ff8d7e988e7928942169f /svx/source/svdraw/svdoole2.cxx
parentcb4015bb28dd7430efaaa523d04a155eb7e46305 (diff)
loplugin:passstuffbyref in svx
Change-Id: I7d405830785cb12aaceb65d6ed03dda04aa90fd8
Diffstat (limited to 'svx/source/svdraw/svdoole2.cxx')
-rw-r--r--svx/source/svdraw/svdoole2.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/svdraw/svdoole2.cxx b/svx/source/svdraw/svdoole2.cxx
index bfcd7d5853cc..0b8116e212e1 100644
--- a/svx/source/svdraw/svdoole2.cxx
+++ b/svx/source/svdraw/svdoole2.cxx
@@ -127,8 +127,8 @@ public:
m_aScaleHeight = aScaleHeight;
}
- Fraction GetScaleWidth() const { return m_aScaleWidth; }
- Fraction GetScaleHeight() const { return m_aScaleHeight; }
+ const Fraction& GetScaleWidth() const { return m_aScaleWidth; }
+ const Fraction& GetScaleHeight() const { return m_aScaleHeight; }
void setWindow(const uno::Reference< awt::XWindow >& _xWindow);
@@ -1558,7 +1558,7 @@ void SdrOle2Obj::AbandonObject()
}
-OUString SdrOle2Obj::GetPersistName() const
+const OUString& SdrOle2Obj::GetPersistName() const
{
return mpImpl->aPersistName;
}