summaryrefslogtreecommitdiff
path: root/Userland/Applications/SoundPlayer/Common.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
commit465af4c4d4f403909208a420c21dbf7cf9cc015d (patch)
treeeac280a0bf8e2a6d852852bb2a4bb5a430967843 /Userland/Applications/SoundPlayer/Common.h
parent6b75a4dfc32e870e001cc2856fb4498069c39708 (diff)
downloadserenity-465af4c4d4f403909208a420c21dbf7cf9cc015d.zip
Applications: 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/Applications/SoundPlayer/Common.h')
-rw-r--r--Userland/Applications/SoundPlayer/Common.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Applications/SoundPlayer/Common.h b/Userland/Applications/SoundPlayer/Common.h
index 901a7d17bb..75f8aed2e5 100644
--- a/Userland/Applications/SoundPlayer/Common.h
+++ b/Userland/Applications/SoundPlayer/Common.h
@@ -21,7 +21,7 @@ public:
bool mouse_is_down() const { return m_mouse_is_down; }
-protected:
+private:
AutoSlider(Orientation orientation)
: GUI::Slider(orientation)
{
@@ -42,6 +42,5 @@ protected:
GUI::Slider::mouseup_event(event);
}
-private:
bool m_mouse_is_down { false };
};