Core/Resource: Pass filePath by value and move to prevent useless copy
This commit is contained in:
@@ -23,7 +23,7 @@ namespace Nz
|
||||
|
||||
const std::filesystem::path& GetFilePath() const;
|
||||
|
||||
void SetFilePath(const std::filesystem::path& filePath);
|
||||
void SetFilePath(std::filesystem::path filePath);
|
||||
|
||||
Resource& operator=(const Resource&) = default;
|
||||
Resource& operator=(Resource&&) noexcept = default;
|
||||
|
||||
Reference in New Issue
Block a user