summaryrefslogtreecommitdiff
path: root/Userland/Demos
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2021-10-31 23:38:04 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-02 22:56:53 +0100
commit3796d417e00599c263c69ebf1ef4c0dcc52261a7 (patch)
tree3e81c30a95d1eafe3218dccc6d4a318290582cb1 /Userland/Demos
parent465af4c4d4f403909208a420c21dbf7cf9cc015d (diff)
downloadserenity-3796d417e00599c263c69ebf1ef4c0dcc52261a7.zip
Demos+DevTools+Games: Fix visibility of Object-derivative constructors
Derivatives of Core::Object should be constructed through ClassName::construct(), to avoid handling ref-counted objects with refcount zero. Fixing the visibility means that misuses like this are more difficult.
Diffstat (limited to 'Userland/Demos')
-rw-r--r--Userland/Demos/Mandelbrot/Mandelbrot.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Demos/Mandelbrot/Mandelbrot.cpp b/Userland/Demos/Mandelbrot/Mandelbrot.cpp
index 882282972d..91926cf2d2 100644
--- a/Userland/Demos/Mandelbrot/Mandelbrot.cpp
+++ b/Userland/Demos/Mandelbrot/Mandelbrot.cpp
@@ -218,6 +218,8 @@ class Mandelbrot : public GUI::Frame {
void reset();
private:
+ Mandelbrot() = default;
+
virtual void paint_event(GUI::PaintEvent&) override;
virtual void mousedown_event(GUI::MouseEvent& event) override;
virtual void mousemove_event(GUI::MouseEvent& event) override;