summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-08-27 12:11:50 +0200
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-08-27 12:12:40 +0200
commitf96908e1b1c9456daf49560656c2d6ef5cc6596f (patch)
treefabc8ef6a90a55f5c8669cc8fd35875c1c81029b
parent25df8adbc0e753fa227e5e170d98c722c4553f32 (diff)
pass by const reference
Change-Id: I1d1fff8b596d75a4cb033679d06b300402dbf212
-rw-r--r--chart2/source/view/inc/3DChartObjects.hxx6
-rw-r--r--chart2/source/view/main/3DChartObjects.cxx6
2 files changed, 8 insertions, 4 deletions
diff --git a/chart2/source/view/inc/3DChartObjects.hxx b/chart2/source/view/inc/3DChartObjects.hxx
index d3ea915765fe..49b21a33cd88 100644
--- a/chart2/source/view/inc/3DChartObjects.hxx
+++ b/chart2/source/view/inc/3DChartObjects.hxx
@@ -108,10 +108,12 @@ private:
class ScreenText : public Renderable3DObject
{
public:
- ScreenText(OpenGL3DRenderer* pRenderer, TextCache& rTextCache, const OUString& rStr, glm::vec4 rColor, sal_uInt32 nId);
+ ScreenText(OpenGL3DRenderer* pRenderer, TextCache& rTextCache, const OUString& rStr,
+ const glm::vec4& rColor, sal_uInt32 nId);
virtual void render() SAL_OVERRIDE;
- void setPosition(const glm::vec2& rTopLeft, const glm::vec2& rBottomRight, glm::vec3 r3DPos = glm::vec3(0.0, 0.0, 0.0));
+ void setPosition(const glm::vec2& rTopLeft, const glm::vec2& rBottomRight,
+ const glm::vec3& r3DPos = glm::vec3(0.0, 0.0, 0.0));
private:
TextCacheItem maText;
diff --git a/chart2/source/view/main/3DChartObjects.cxx b/chart2/source/view/main/3DChartObjects.cxx
index 96763d02215a..f4acef76729f 100644
--- a/chart2/source/view/main/3DChartObjects.cxx
+++ b/chart2/source/view/main/3DChartObjects.cxx
@@ -128,14 +128,16 @@ void Text::setPosition(const glm::vec3& rTopLeft, const glm::vec3& rTopRight, co
maBottomRight = rBottomRight;
}
-ScreenText::ScreenText(OpenGL3DRenderer* pRenderer, TextCache& rTextCache, const OUString& rStr, glm::vec4 rColor, sal_uInt32 nId):
+ScreenText::ScreenText(OpenGL3DRenderer* pRenderer, TextCache& rTextCache,
+ const OUString& rStr, const glm::vec4& rColor, sal_uInt32 nId):
Renderable3DObject(pRenderer, nId),
maText(rTextCache.getText(rStr)),
maColor(rColor)
{
}
-void ScreenText::setPosition(const glm::vec2& rTopLeft, const glm::vec2& rBottomRight, glm::vec3 r3DPos)
+void ScreenText::setPosition(const glm::vec2& rTopLeft, const glm::vec2& rBottomRight,
+ const glm::vec3& r3DPos)
{
maTopLeft = rTopLeft;
maBottomRight = rBottomRight;