From 14f06109fe736d06d30f99a4acc0bd1f233ec2af Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Mon, 29 Aug 2016 14:15:50 +0200 Subject: Refactors on_done to done and set_on_done to on_done. --- network-handler/client.cpp | 6 +++--- network-handler/client.hpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/network-handler/client.cpp b/network-handler/client.cpp index c2825d7..f767f6d 100644 --- a/network-handler/client.cpp +++ b/network-handler/client.cpp @@ -23,7 +23,7 @@ void Client::handle_receive(const error_code &ec, size_t read_bytes) std::cout << "Received: " << std::string(data.begin(), data.end()) << std::endl; receive(); } else { - on_done(); + done(); } } @@ -36,6 +36,6 @@ void Client::receive() { ); } -void Client::set_on_done(Client::OnDoneFT f) { - on_done = f; +void Client::on_done(Client::OnDoneFT f) { + done = f; } diff --git a/network-handler/client.hpp b/network-handler/client.hpp index e71edb2..716e2cf 100644 --- a/network-handler/client.hpp +++ b/network-handler/client.hpp @@ -11,8 +11,8 @@ public: private: boost::asio::ip::tcp::socket socket; - OnDoneFT on_done; boost::asio::streambuf buffer; + OnDoneFT done; public: @@ -20,5 +20,5 @@ public: void handle_receive(boost::system::error_code const& ec, size_t read_bytes); void receive(); - void set_on_done(OnDoneFT f); + void on_done(OnDoneFT f); }; -- cgit v1.2.3-70-g09d2