Misc: Pass string_view by value

This commit is contained in:
Stenzek
2024-05-05 20:21:54 +10:00
parent e4d940a476
commit ca3cfbaa99
111 changed files with 543 additions and 542 deletions

View File

@ -350,7 +350,7 @@ void OpenGLTexture::Unmap()
sb->Unbind();
}
void OpenGLTexture::SetDebugName(const std::string_view& name)
void OpenGLTexture::SetDebugName(std::string_view name)
{
#ifdef _DEBUG
if (glObjectLabel)
@ -375,7 +375,7 @@ OpenGLSampler::~OpenGLSampler()
OpenGLDevice::GetInstance().UnbindSampler(m_id);
}
void OpenGLSampler::SetDebugName(const std::string_view& name)
void OpenGLSampler::SetDebugName(std::string_view name)
{
#ifdef _DEBUG
if (glObjectLabel)
@ -660,7 +660,7 @@ void OpenGLTextureBuffer::Unmap(u32 used_elements)
m_buffer->Unmap(size);
}
void OpenGLTextureBuffer::SetDebugName(const std::string_view& name)
void OpenGLTextureBuffer::SetDebugName(std::string_view name)
{
#ifdef _DEBUG
if (glObjectLabel)