TIL override and final

This commit is contained in:
Florent Le Coz
2013-11-21 19:38:31 +01:00
parent bfcc9cdc74
commit 12a18ca748
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -30,16 +30,16 @@ public:
/** /**
* Called when successfully connected to the server * Called when successfully connected to the server
*/ */
void on_connected(); void on_connected() override final;
/** /**
* Close the connection, remove us from the poller * 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 * Parse the data we have received so far and try to get one or more
* complete messages from it. * 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 * Return the channel with this name, create it if it does not yet exist
*/ */
+3 -3
View File
@@ -20,9 +20,9 @@ class XmppComponent: public SocketHandler
public: public:
explicit XmppComponent(const std::string& hostname, const std::string& secret); explicit XmppComponent(const std::string& hostname, const std::string& secret);
~XmppComponent(); ~XmppComponent();
void on_connected(); void on_connected() override final;
void on_connection_close(); void on_connection_close() override final;
void parse_in_buffer(); void parse_in_buffer() override final;
/** /**
* Connect to the XMPP server * Connect to the XMPP server