Browse Source

Text: lol @ this TODO.

This is all going to get deprecated. Using a string view wouldn't help,
the rest is still too shitty.
pull/653/head
Vladimír Vondruš 2 years ago
parent
commit
645ddd8678
  1. 4
      src/Magnum/Text/Renderer.cpp

4
src/Magnum/Text/Renderer.cpp

@ -382,10 +382,6 @@ std::tuple<std::vector<Vertex>, Range2D> renderVerticesInternal(AbstractFont& fo
Vector2 linePosition;
/* Temp buffer so we don't allocate for each new line */
/**
* @todo C++1z: use std::string_view to avoid the one allocation and all
* the copying altogether
*/
std::string line;
line.reserve(text.size());

Loading…
Cancel
Save