mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-05 22:52:10 +02:00
Libraries: 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.
This commit is contained in:
committed by
Andreas Kling
parent
3796d417e0
commit
b3e9a4e603
@@ -21,7 +21,6 @@ class TLSv12WebSocketConnectionImpl final : public AbstractWebSocketImpl {
|
||||
|
||||
public:
|
||||
virtual ~TLSv12WebSocketConnectionImpl() override;
|
||||
explicit TLSv12WebSocketConnectionImpl(Core::Object* parent = nullptr);
|
||||
|
||||
void connect(ConnectionInfo const& connection) override;
|
||||
|
||||
@@ -38,6 +37,8 @@ public:
|
||||
virtual void discard_connection() override;
|
||||
|
||||
private:
|
||||
explicit TLSv12WebSocketConnectionImpl(Core::Object* parent = nullptr);
|
||||
|
||||
RefPtr<TLS::TLSv12> m_socket;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user