summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2013-11-21 19:38:31 +0100
committerFlorent Le Coz <louiz@louiz.org>2013-11-21 19:38:31 +0100
commit12a18ca748a27111bb24a7f6518f831494e5ca47 (patch)
treecac6445f7c0e0e2b2b81515e4c3c89bf88546bd8
parentbfcc9cdc7462c515c308592735bc661103fb92b5 (diff)
downloadbiboumi-12a18ca748a27111bb24a7f6518f831494e5ca47.tar.gz
biboumi-12a18ca748a27111bb24a7f6518f831494e5ca47.tar.bz2
biboumi-12a18ca748a27111bb24a7f6518f831494e5ca47.tar.xz
biboumi-12a18ca748a27111bb24a7f6518f831494e5ca47.zip
TIL override and final
-rw-r--r--src/irc/irc_client.hpp6
-rw-r--r--src/xmpp/xmpp_component.hpp6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/irc/irc_client.hpp b/src/irc/irc_client.hpp
index aa420f4..4749cac 100644
--- a/src/irc/irc_client.hpp
+++ b/src/irc/irc_client.hpp
@@ -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
*/
diff --git a/src/xmpp/xmpp_component.hpp b/src/xmpp/xmpp_component.hpp
index 0c68497..e45c64b 100644
--- a/src/xmpp/xmpp_component.hpp
+++ b/src/xmpp/xmpp_component.hpp
@@ -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