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:
@@ -35,7 +35,7 @@ namespace Nz::GL
|
||||
OpenGLDevice* GetDevice() const;
|
||||
GLuint GetObjectId() const;
|
||||
|
||||
void SetDebugName(const std::string_view& name);
|
||||
void SetDebugName(std::string_view name);
|
||||
|
||||
DeviceObject& operator=(const DeviceObject&) = delete;
|
||||
DeviceObject& operator=(DeviceObject&& object) noexcept = default;
|
||||
|
||||
Reference in New Issue
Block a user