summaryrefslogtreecommitdiff
path: root/Applications/Spreadsheet/Cell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Applications/Spreadsheet/Cell.cpp')
-rw-r--r--Applications/Spreadsheet/Cell.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/Spreadsheet/Cell.cpp b/Applications/Spreadsheet/Cell.cpp
index 2192ce3d66..d2f511753f 100644
--- a/Applications/Spreadsheet/Cell.cpp
+++ b/Applications/Spreadsheet/Cell.cpp
@@ -187,7 +187,7 @@ void Cell::reference_from(Cell* other)
if (!other || other == this)
return;
- if (!m_referencing_cells.find([other](auto& ptr) { return ptr.ptr() == other; }).is_end())
+ if (!m_referencing_cells.find_if([other](const auto& ptr) { return ptr.ptr() == other; }).is_end())
return;
m_referencing_cells.append(other->make_weak_ptr());