summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/core/tools/freezer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/tools/freezer.cpp b/src/core/tools/freezer.cpp
index c0d9004dd..4ca1870f2 100644
--- a/src/core/tools/freezer.cpp
+++ b/src/core/tools/freezer.cpp
@@ -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;
});