summaryrefslogtreecommitdiff
path: root/Games/Minesweeper/Field.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-23 12:07:13 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-23 12:27:53 +0100
commitc5d913970ab122cdeaf23aea24e65efa6b425ab0 (patch)
tree07ef4cb2d039521ec7b1931c707b5196b7ea1628 /Games/Minesweeper/Field.h
parent4ce28c32d1813b043758c0d15d5efc17452c2b77 (diff)
downloadserenity-c5d913970ab122cdeaf23aea24e65efa6b425ab0.zip
LibGUI: Remove parent parameter to GUI::Widget constructor
Diffstat (limited to 'Games/Minesweeper/Field.h')
-rw-r--r--Games/Minesweeper/Field.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Games/Minesweeper/Field.h b/Games/Minesweeper/Field.h
index b56813d460..97a84f015d 100644
--- a/Games/Minesweeper/Field.h
+++ b/Games/Minesweeper/Field.h
@@ -37,7 +37,7 @@ class SquareLabel;
class Square {
AK_MAKE_NONCOPYABLE(Square)
public:
- Square() {}
+ Square();
~Square();
Field* field { nullptr };
@@ -48,8 +48,8 @@ public:
int row { 0 };
int column { 0 };
int number { 0 };
- SquareButton* button { nullptr };
- SquareLabel* label { nullptr };
+ RefPtr<SquareButton> button;
+ RefPtr<SquareLabel> label;
template<typename Callback>
void for_each_neighbor(Callback);