Small layout tweak for Buffer::HistoryNode

This commit is contained in:
Maxime Coste 2017-02-06 13:33:20 +00:00
parent cb2e1a17b3
commit 45b145f540

View File

@ -249,17 +249,17 @@ private:
String m_display_name; String m_display_name;
Flags m_flags; Flags m_flags;
using UndoGroup = Vector<Modification, MemoryDomain::BufferMeta>; using UndoGroup = Vector<Modification, MemoryDomain::BufferMeta>;
struct HistoryNode : SafeCountable, UseMemoryDomain<MemoryDomain::BufferMeta> struct HistoryNode : SafeCountable, UseMemoryDomain<MemoryDomain::BufferMeta>
{ {
HistoryNode(size_t id, HistoryNode* parent); HistoryNode(size_t id, HistoryNode* parent);
size_t id;
SafePtr<HistoryNode> parent;
UndoGroup undo_group; UndoGroup undo_group;
Vector<std::unique_ptr<HistoryNode>, MemoryDomain::BufferMeta> childs; Vector<std::unique_ptr<HistoryNode>, MemoryDomain::BufferMeta> childs;
SafePtr<HistoryNode> parent;
SafePtr<HistoryNode> redo_child; SafePtr<HistoryNode> redo_child;
size_t id;
TimePoint timepoint; TimePoint timepoint;
}; };