diff --git a/Socket.cpp b/Socket.cpp index f6ecab7..f268233 100644 --- a/Socket.cpp +++ b/Socket.cpp @@ -99,13 +99,11 @@ namespace core return !shutDown; } - void Socket::onDataReceived(std::string data) - { + void Socket::onDataReceived(std::string data) { throw coreutils::Exception("Need to override onDataReceived.", __FILE__, __LINE__, -1); } - void Socket::onDataReceived(coreutils::ZString &data) - { + void Socket::onDataReceived(coreutils::ZString &data) { onDataReceived(std::string(data.getData(), data.getLength())); }