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:
@@ -1027,7 +1027,7 @@ namespace Nz::GL
|
||||
m_vaoCache.Clear();
|
||||
}
|
||||
|
||||
bool Context::ImplementFallback(const std::string_view& function)
|
||||
bool Context::ImplementFallback(std::string_view function)
|
||||
{
|
||||
SymbolLoader loader(*this);
|
||||
|
||||
|
||||
@@ -296,7 +296,7 @@ namespace Nz::GL
|
||||
return true;
|
||||
}
|
||||
|
||||
bool EGLContextBase::ImplementFallback(const std::string_view& function)
|
||||
bool EGLContextBase::ImplementFallback(std::string_view function)
|
||||
{
|
||||
if (Context::ImplementFallback(function))
|
||||
return true;
|
||||
|
||||
@@ -245,7 +245,7 @@ namespace Nz::GL
|
||||
}
|
||||
}
|
||||
|
||||
bool EGLLoader::ImplementFallback(const std::string_view& /*function*/)
|
||||
bool EGLLoader::ImplementFallback(std::string_view /*function*/)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -238,7 +238,7 @@ namespace Nz::GL
|
||||
return true;
|
||||
}
|
||||
|
||||
bool WGLContext::ImplementFallback(const std::string_view& function)
|
||||
bool WGLContext::ImplementFallback(std::string_view function)
|
||||
{
|
||||
if (Context::ImplementFallback(function))
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user