mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 11:05:46 +00:00
video_core/gpu_thread: Remove redundant copy constructor for CommandDataContainer
std::move within a copy constructor (on a data member that isn't mutable) will always result in a copy. Because of that, the behavior of this copy constructor is identical to the one that would be generated automatically by the compiler, so we can remove it.
This commit is contained in:
parent
9415bf9da5
commit
f7e6e4a882
1 changed files with 0 additions and 6 deletions
|
@ -81,12 +81,6 @@ struct CommandDataContainer {
|
||||||
CommandDataContainer(CommandData&& data, u64 next_fence)
|
CommandDataContainer(CommandData&& data, u64 next_fence)
|
||||||
: data{std::move(data)}, fence{next_fence} {}
|
: data{std::move(data)}, fence{next_fence} {}
|
||||||
|
|
||||||
CommandDataContainer& operator=(const CommandDataContainer& t) {
|
|
||||||
data = std::move(t.data);
|
|
||||||
fence = t.fence;
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CommandData data;
|
CommandData data;
|
||||||
u64 fence{};
|
u64 fence{};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue