This function doesn't need to take ownership of the string data being given to it, considering all we do is append the characters to the internal string instance. Instead, use a string view to simply reference the string data without any potential heap allocation. Now anything that is a raw const char* won't need to be converted to a std::string before appending. |
||
---|---|---|
.. | ||
debug_utils | ||
engines | ||
renderer_opengl | ||
textures | ||
CMakeLists.txt | ||
command_processor.cpp | ||
command_processor.h | ||
gpu.cpp | ||
gpu.h | ||
macro_interpreter.cpp | ||
macro_interpreter.h | ||
memory_manager.cpp | ||
memory_manager.h | ||
rasterizer_interface.h | ||
renderer_base.cpp | ||
renderer_base.h | ||
utils.h | ||
video_core.cpp | ||
video_core.h |