Optimize out a lot of std::string construction and allocations (#415)
Update CommandLineParameters.hpp Update CommandLineParametersTests.cpp Update WebContext.hpp xmake check-files -f Fix MaterialPassRegistry
This commit is contained in:
@@ -16,9 +16,9 @@ namespace Nz::GL
|
||||
{
|
||||
}
|
||||
|
||||
inline bool EGLContextBase::HasPlatformExtension(const std::string& str) const
|
||||
inline bool EGLContextBase::HasPlatformExtension(std::string_view str) const
|
||||
{
|
||||
return m_supportedPlatformExtensions.find(str) != m_supportedPlatformExtensions.end();
|
||||
return m_supportedPlatformExtensions.contains(str);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user