summaryrefslogtreecommitdiff
path: root/src/buffer.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.hh')
-rw-r--r--src/buffer.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.hh b/src/buffer.hh
index ee03c0a0..7cf2db7b 100644
--- a/src/buffer.hh
+++ b/src/buffer.hh
@@ -252,14 +252,14 @@ private:
using UndoGroup = Vector<Modification, MemoryDomain::BufferMeta>;
- struct HistoryNode : SafeCountable, UseMemoryDomain<MemoryDomain::BufferMeta>
+ struct HistoryNode : SafeCountable, UseMemoryDomain<MemoryDomain::BufferMeta>
{
HistoryNode(size_t id, HistoryNode* parent);
UndoGroup undo_group;
Vector<std::unique_ptr<HistoryNode>, MemoryDomain::BufferMeta> childs;
SafePtr<HistoryNode> parent;
- SafePtr<HistoryNode> redo_child;
+ HistoryNode* redo_child = nullptr; // not a SafePtr to avoid lifetime issues between this and childs
size_t id;
TimePoint timepoint;
};