[drape_frontend] Fix memset of non-trivial CirclesPackDynamicVertex type

Fixes the following GCC warning:

````
drape_frontend/circles_pack_shape.cpp:133:9: warning: ‘void* memset(void*, int, size_t)’
clearing an object of non-trivial type ‘struct df::CirclesPackDynamicVertex’;
use assignment or value-initialization instead [-Wclass-memaccess]
  133 |   memset(m_buffer.data(), 0, m_buffer.size() * sizeof(CirclesPackDynamicVertex));
      |   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
````

Signed-off-by: Ferenc Géczi <ferenc.gm@gmail.com>
This commit is contained in:
Ferenc Géczi 2024-12-19 00:00:00 +00:00 committed by Viktor Havaka
parent 6465fa8686
commit 958589b29a

View file

@ -130,7 +130,7 @@ void CirclesPackHandle::SetPoint(size_t index, m2::PointD const & position, floa
void CirclesPackHandle::Clear()
{
memset(m_buffer.data(), 0, m_buffer.size() * sizeof(CirclesPackDynamicVertex));
fill(begin(m_buffer), end(m_buffer), CirclesPackDynamicVertex(glsl::vec3(0.0f), glsl::vec4(0.0f)));
m_needUpdate = true;
}