summaryrefslogtreecommitdiff
path: root/chart2/source
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-01-15 21:03:48 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-01-29 08:09:49 +0100
commit6a515ca18479ad0335ef71d26be0c326b13bf5f7 (patch)
tree710d2e4ccce5197fd6a0b730271307d74c885f6f /chart2/source
parentccbaca2951d858125ccc4691454ae8e90c801fe8 (diff)
does not need to be a member variable
Change-Id: Ib5b61f724c9df974d02875cde76079094cb59c38
Diffstat (limited to 'chart2/source')
-rwxr-xr-xchart2/source/view/main/OpenGLRender.cxx13
-rwxr-xr-xchart2/source/view/main/OpenGLRender.hxx2
2 files changed, 6 insertions, 9 deletions
diff --git a/chart2/source/view/main/OpenGLRender.cxx b/chart2/source/view/main/OpenGLRender.cxx
index d540fe28098d..5b6010855158 100755
--- a/chart2/source/view/main/OpenGLRender.cxx
+++ b/chart2/source/view/main/OpenGLRender.cxx
@@ -940,7 +940,6 @@ OpenGLRender::OpenGLRender(uno::Reference< drawing::XShape > xTarget):
memset(&m_Bubble2DPointList, 0, sizeof(m_Bubble2DPointList));
memset(&m_Bubble2DCircle, 0, sizeof(m_Bubble2DCircle));
memset(&m_TextInfo, 0, sizeof(TextInfo));
- memset(&m_RectangleList, 0, sizeof(RectanglePointList));
m_iArbMultisampleFormat = 0;
@@ -1347,13 +1346,13 @@ int OpenGLRender::RectangleShapePoint(float x, float y, float directionX, float
//check whether to create the circle data
float actualX = x / OPENGL_SCALE_VALUE;
float actualY = y / OPENGL_SCALE_VALUE;
- m_RectangleList.x = actualX;
- m_RectangleList.y = actualY;
- m_RectangleList.z = m_fZStep;
- m_RectangleList.xScale = directionX / OPENGL_SCALE_VALUE;
- m_RectangleList.yScale = directionY / OPENGL_SCALE_VALUE;
+ RectanglePointList aRectangleList.x = actualX;
+ aRectangleList.y = actualY;
+ aRectangleList.z = m_fZStep;
+ aRectangleList.xScale = directionX / OPENGL_SCALE_VALUE;
+ aRectangleList.yScale = directionY / OPENGL_SCALE_VALUE;
- m_RectangleShapePointList.push_back(m_RectangleList);
+ m_RectangleShapePointList.push_back(aRectangleList);
return 0;
}
diff --git a/chart2/source/view/main/OpenGLRender.hxx b/chart2/source/view/main/OpenGLRender.hxx
index 5a28644fc953..68d0982395a3 100755
--- a/chart2/source/view/main/OpenGLRender.hxx
+++ b/chart2/source/view/main/OpenGLRender.hxx
@@ -278,8 +278,6 @@ private:
float m_fAlpha;
- RectanglePointList m_RectangleList;
-
std::list <RectanglePointList> m_RectangleShapePointList;
// add for text
TextInfo m_TextInfo;