Core/StringExt: Don't pass string_view by ref
https://quuxplusone.github.io/blog/2021/11/09/pass-string-view-by-value/
This commit is contained in:
@@ -230,7 +230,7 @@ namespace Nz
|
||||
{ ".tga", &SaveTGA }
|
||||
});
|
||||
|
||||
bool FormatQuerier(const std::string_view& extension)
|
||||
bool FormatQuerier(std::string_view extension)
|
||||
{
|
||||
return s_formatHandlers.find(extension) != s_formatHandlers.end();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user