[nostalgia/studio] Fix copy pessimization
This commit is contained in:
parent
fee5a33da1
commit
2e71d288b4
@ -116,7 +116,7 @@ std::unique_ptr<T> Project::loadObj(QString path) const {
|
||||
auto obj = std::make_unique<T>();
|
||||
auto buff = loadBuff(path);
|
||||
oxThrowError(ox::readClaw<T>(buff.data(), buff.size(), obj.get()));
|
||||
return std::move(obj);
|
||||
return obj;
|
||||
}
|
||||
|
||||
template<typename Functor>
|
||||
|
Loading…
x
Reference in New Issue
Block a user