refactor: Fix a bunch of minor things (#5094)
This commit is contained in:
@@ -23,6 +23,10 @@ public:
|
||||
enum ConnectionType { Read = 1, Write = 2, Both = 3 };
|
||||
|
||||
~AbstractIrcServer() override = default;
|
||||
AbstractIrcServer(const AbstractIrcServer &) = delete;
|
||||
AbstractIrcServer(AbstractIrcServer &&) = delete;
|
||||
AbstractIrcServer &operator=(const AbstractIrcServer &) = delete;
|
||||
AbstractIrcServer &operator=(AbstractIrcServer &&) = delete;
|
||||
|
||||
// initializeIrc must be called from the derived class
|
||||
// this allows us to initialize the abstract IRC server based on the derived class's parameters
|
||||
@@ -57,7 +61,11 @@ protected:
|
||||
// initializeConnectionSignals is called on a connection once in its lifetime.
|
||||
// it can be used to connect signals to your class
|
||||
virtual void initializeConnectionSignals(IrcConnection *connection,
|
||||
ConnectionType type){};
|
||||
ConnectionType type)
|
||||
{
|
||||
(void)connection;
|
||||
(void)type;
|
||||
}
|
||||
|
||||
// initializeConnection is called every time before we try to connect to the IRC server
|
||||
virtual void initializeConnection(IrcConnection *connection,
|
||||
|
||||
Reference in New Issue
Block a user