Kaydet (Commit) fc2a20fe authored tarafından Markus Mohrhard's avatar Markus Mohrhard

using memset on a vector is just so wrong

Change-Id: Ia022f5d0200a60d993c74f2c9f29f906c6284f0f
üst 40e22a42
...@@ -370,17 +370,11 @@ OpenGLRender::OpenGLRender() ...@@ -370,17 +370,11 @@ OpenGLRender::OpenGLRender()
, m_SymbolColorID(0) , m_SymbolColorID(0)
, m_SymbolShapeID(0) , m_SymbolShapeID(0)
{ {
//TODO: moggi: use STL
memset(&m_Line2DPointList, 0, sizeof(PointList));
memset(&m_Bubble2DCircle, 0, sizeof(m_Bubble2DCircle));
//TODO: moggi: use STL //TODO: moggi: use STL
for (size_t i = 0; i < sizeof(m_BackgroundColor) / sizeof(float); i++) for (size_t i = 0; i < sizeof(m_BackgroundColor) / sizeof(float); i++)
{ {
m_BackgroundColor[i] = 1.0; m_BackgroundColor[i] = 1.0;
} }
memset(&m_Area2DPointList, 0, sizeof(m_Area2DPointList));
} }
OpenGLRender::~OpenGLRender() OpenGLRender::~OpenGLRender()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment