Commit 12a18ca7 authored by louiz’'s avatar louiz’

TIL override and final

parent bfcc9cdc
......@@ -30,16 +30,16 @@ public:
/**
* Called when successfully connected to the server
*/
void on_connected();
void on_connected() override final;
/**
* Close the connection, remove us from the poller
*/
void on_connection_close();
void on_connection_close() override final;
/**
* Parse the data we have received so far and try to get one or more
* complete messages from it.
*/
void parse_in_buffer();
void parse_in_buffer() override final;
/**
* Return the channel with this name, create it if it does not yet exist
*/
......
......@@ -20,9 +20,9 @@ class XmppComponent: public SocketHandler
public:
explicit XmppComponent(const std::string& hostname, const std::string& secret);
~XmppComponent();
void on_connected();
void on_connection_close();
void parse_in_buffer();
void on_connected() override final;
void on_connection_close() override final;
void parse_in_buffer() override final;
/**
* Connect to the XMPP server
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment