Use string_file::release in some places
I found a few spots like: string_file f; std::string x = f.string (); However, string_file::string returns a 'const std::string &'... so it seems to me that this must be copying the string (? I find it hard to reason about this in C++). This patch changes these spots to use release() instead, which moves the string. Reviewed-by:Keith Seitz <keiths@redhat.com> Reviewed-by:
Lancelot Six <lancelot.six@amd.com>
Loading
Please register or sign in to comment