summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-01-21 12:10:24 +0000
committerMaxime Coste <mawww@kakoune.org>2017-01-21 12:10:24 +0000
commitc6a7924b80f25227212d493d367a8c3bec16e4ee (patch)
tree4b7392b96af92dada2c63aa2b29af4eab864b461 /src
parent6f4515f005d41c03ed18766e68544cb5aca7b8c4 (diff)
Fix SafeCountable callstack tracking
Diffstat (limited to 'src')
-rw-r--r--src/safe_ptr.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/safe_ptr.hh b/src/safe_ptr.hh
index bafa1434..efe5da80 100644
--- a/src/safe_ptr.hh
+++ b/src/safe_ptr.hh
@@ -66,7 +66,7 @@ struct SafeCountablePolicy
kak_assert(sc->m_count >= 0);
#ifdef SAFE_PTR_TRACK_CALLSTACKS
auto it = std::find_if(sc->m_callstacks.begin(), sc->m_callstacks.end(),
- [=](const Callstack& cs) { return cs.ptr == ptr; });
+ [=](const SafeCountable::Callstack& cs) { return cs.ptr == ptr; });
kak_assert(it != sc->m_callstacks.end());
sc->m_callstacks.erase(it);
#endif
@@ -76,7 +76,7 @@ struct SafeCountablePolicy
{
#ifdef SAFE_PTR_TRACK_CALLSTACKS
auto it = std::find_if(sc->m_callstacks.begin(), sc->m_callstacks.end(),
- [=](const Callstack& cs) { return cs.ptr == from; });
+ [=](const SafeCountable::Callstack& cs) { return cs.ptr == from; });
kak_assert(it != sc->m_callstacks.end());
it->ptr = to;
#endif