summaryrefslogtreecommitdiff
path: root/Userland/Services/WindowServer/AppletManager.h
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
commit4e55d649d72055f817439f5db8517c9af9cab44a (patch)
tree9307cdf2c618afd6fd68e601c78414ff553c2280 /Userland/Services/WindowServer/AppletManager.h
parentb3e9a4e603ce6371e7c1a092bd70e5f367384c4b (diff)
downloadserenity-4e55d649d72055f817439f5db8517c9af9cab44a.zip
Services: 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/Services/WindowServer/AppletManager.h')
-rw-r--r--Userland/Services/WindowServer/AppletManager.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Services/WindowServer/AppletManager.h b/Userland/Services/WindowServer/AppletManager.h
index 9e1ad37781..f92fe9979a 100644
--- a/Userland/Services/WindowServer/AppletManager.h
+++ b/Userland/Services/WindowServer/AppletManager.h
@@ -14,7 +14,6 @@ namespace WindowServer {
class AppletManager : public Core::Object {
C_OBJECT(AppletManager)
public:
- AppletManager();
~AppletManager();
static AppletManager& the();
@@ -35,6 +34,8 @@ public:
void did_change_theme();
private:
+ AppletManager();
+
void repaint();
void draw_applet(const Window& applet);
void set_hovered_applet(Window*);