summaryrefslogtreecommitdiff
path: root/include/sockets.h
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2022-01-03 18:52:15 +0000
committerSadie Powell <sadie@witchery.services>2022-01-04 00:17:19 +0000
commita31a7f5a6ce3f47716a9313d232c2a40955fd1e1 (patch)
tree8061f572670ccda9030955b67cdefba7df4facce /include/sockets.h
parent7531e90499d4cd60b6464c692725225e85c00738 (diff)
Use C++11 default initializers and destructors where possible.
Diffstat (limited to 'include/sockets.h')
-rw-r--r--include/sockets.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/include/sockets.h b/include/sockets.h
index aed9957b6..823756a0e 100644
--- a/include/sockets.h
+++ b/include/sockets.h
@@ -126,7 +126,7 @@ class SocketException : public CoreException
/** Destructor
* @throws Nothing
*/
- virtual ~SocketException() throw() { }
+ virtual ~SocketException() throw() = default;
};
enum SocketFlag
@@ -144,7 +144,7 @@ enum SocketFlag
class CoreExport SocketIO
{
public:
- virtual ~SocketIO() { }
+ virtual ~SocketIO() = default;
/** Receive something from the buffer
* @param s The socket
@@ -285,8 +285,7 @@ class CoreExport BufferedSocket : public virtual Socket
int recv_len;
public:
- BufferedSocket();
- virtual ~BufferedSocket();
+ virtual ~BufferedSocket() = default;
/** Called when there is something to be received for this socket
* @return true on success, false to drop this socket
@@ -339,8 +338,7 @@ class CoreExport BinarySocket : public virtual Socket
std::deque<DataBlock *> write_buffer;
public:
- BinarySocket();
- virtual ~BinarySocket();
+ virtual ~BinarySocket() = default;
/** Called when there is something to be received for this socket
* @return true on success, false to drop this socket
@@ -377,7 +375,7 @@ class CoreExport ListenSocket : public virtual Socket
* @param ipv6 true for ipv6
*/
ListenSocket(const Anope::string &bindip, int port, bool ipv6);
- virtual ~ListenSocket();
+ virtual ~ListenSocket() = default;
/** Process what has come in from the connection
* @return false to destroy this socket