mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
freezer: Take address values by value
VAddr will always be 64-bit, so there's no need to take a trivial primitive alias by reference.
This commit is contained in:
parent
253a17451b
commit
06ab28263b
1 changed files with 3 additions and 3 deletions
|
@ -113,7 +113,7 @@ void Freezer::Unfreeze(VAddr address) {
|
|||
bool Freezer::IsFrozen(VAddr address) const {
|
||||
std::lock_guard lock{entries_mutex};
|
||||
|
||||
return std::find_if(entries.begin(), entries.end(), [&address](const Entry& entry) {
|
||||
return std::find_if(entries.begin(), entries.end(), [address](const Entry& entry) {
|
||||
return entry.address == address;
|
||||
}) != entries.end();
|
||||
}
|
||||
|
@ -121,7 +121,7 @@ bool Freezer::IsFrozen(VAddr address) const {
|
|||
void Freezer::SetFrozenValue(VAddr address, u64 value) {
|
||||
std::lock_guard lock{entries_mutex};
|
||||
|
||||
const auto iter = std::find_if(entries.begin(), entries.end(), [&address](const Entry& entry) {
|
||||
const auto iter = std::find_if(entries.begin(), entries.end(), [address](const Entry& entry) {
|
||||
return entry.address == address;
|
||||
});
|
||||
|
||||
|
@ -140,7 +140,7 @@ void Freezer::SetFrozenValue(VAddr address, u64 value) {
|
|||
std::optional<Freezer::Entry> Freezer::GetEntry(VAddr address) const {
|
||||
std::lock_guard lock{entries_mutex};
|
||||
|
||||
const auto iter = std::find_if(entries.begin(), entries.end(), [&address](const Entry& entry) {
|
||||
const auto iter = std::find_if(entries.begin(), entries.end(), [address](const Entry& entry) {
|
||||
return entry.address == address;
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue