1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:07:34 +00:00

PixelPaint: Make ImageEditor::m_undo_stack a regular value member

This commit is contained in:
Andreas Kling 2022-01-04 17:58:40 +01:00
parent 490d385d01
commit 1a54ac262a
2 changed files with 10 additions and 12 deletions

View file

@ -43,7 +43,7 @@ public:
bool undo();
bool redo();
auto& undo_stack() { return *m_undo_stack; }
auto& undo_stack() { return m_undo_stack; }
void add_guide(NonnullRefPtr<Guide> guide) { m_guides.append(guide); }
void remove_guide(Guide const& guide)
@ -153,7 +153,7 @@ private:
NonnullRefPtr<Image> m_image;
RefPtr<Layer> m_active_layer;
OwnPtr<GUI::UndoStack> m_undo_stack;
GUI::UndoStack m_undo_stack;
NonnullRefPtrVector<Guide> m_guides;
bool m_show_guides { true };