Commit e3b6f6c0 authored by Lioncash's avatar Lioncash
Browse files

glsl_shader_decompiler: Use std::string_view instead of std::string for AddLine()

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.
parent 412b31ad
Supports Markdown
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