summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-05-13 01:22:49 +0200
committerlouiz’ <louiz@louiz.org>2016-05-13 01:22:49 +0200
commitfdddd447b3976f26a4146ebf91abfc04736a006b (patch)
tree51768bc3b5a6e676571c6805ca787beaf91a66d5 /src/irc
parentce2b8a15f17151c9ecfeebdec205ff2bb9248078 (diff)
downloadbiboumi-fdddd447b3976f26a4146ebf91abfc04736a006b.tar.gz
biboumi-fdddd447b3976f26a4146ebf91abfc04736a006b.tar.bz2
biboumi-fdddd447b3976f26a4146ebf91abfc04736a006b.tar.xz
biboumi-fdddd447b3976f26a4146ebf91abfc04736a006b.zip
Use “using” instead of typedef
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/irc_client.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp
index 327b170..0b1b079 100644
--- a/src/irc/irc_client.cpp
+++ b/src/irc/irc_client.cpp
@@ -27,10 +27,10 @@ using namespace std::chrono_literals;
* Define a map of functions to be called for each IRC command we can
* handle.
*/
-typedef void (IrcClient::*irc_callback_t)(const IrcMessage&);
+using IrcCallback = void (IrcClient::*)(const IrcMessage&);
static const std::unordered_map<std::string,
- std::pair<irc_callback_t, std::pair<std::size_t, std::size_t>>> irc_callbacks = {
+ std::pair<IrcCallback, std::pair<std::size_t, std::size_t>>> irc_callbacks = {
{"NOTICE", {&IrcClient::on_notice, {2, 0}}},
{"002", {&IrcClient::forward_server_message, {2, 0}}},
{"003", {&IrcClient::forward_server_message, {2, 0}}},