diff options
author | George Hazan <george.hazan@gmail.com> | 2015-01-25 19:54:43 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-01-25 19:54:43 +0000 |
commit | 58ac4567a402d383c3edb0749b9f2fb88b8422d6 (patch) | |
tree | 224f909ab2abea950795d88b15b8b8a9e486551b /protocols/WhatsApp/src/WASocketConnection.cpp | |
parent | dac1f42ef81ac1119430fd294a6b35b0b8cd6837 (diff) |
less pointers, less memory problems
git-svn-id: http://svn.miranda-ng.org/main/trunk@11906 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/WASocketConnection.cpp')
-rw-r--r-- | protocols/WhatsApp/src/WASocketConnection.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/protocols/WhatsApp/src/WASocketConnection.cpp b/protocols/WhatsApp/src/WASocketConnection.cpp index 41d0b78663..c688492e4e 100644 --- a/protocols/WhatsApp/src/WASocketConnection.cpp +++ b/protocols/WhatsApp/src/WASocketConnection.cpp @@ -20,9 +20,8 @@ WASocketConnection::WASocketConnection(const std::string& dir, int port) throw ( noc.flags = NLOCF_V2; // | NLOCF_SSL;
this->hConn = (HANDLE)CallService(MS_NETLIB_OPENCONNECTION, reinterpret_cast<WPARAM>(this->hNetlibUser),
reinterpret_cast<LPARAM>(&noc));
- if (this->hConn == NULL) {
+ if (this->hConn == NULL)
throw WAException(getLastErrorMsg(), WAException::SOCKET_EX, WAException::SOCKET_EX_OPEN);
- }
this->connected = true;
}
@@ -45,7 +44,6 @@ void WASocketConnection::write(int i) void WASocketConnection::makeNonBlock()
{
- //if (fcntl(socket->channel, F_SETFL, O_NONBLOCK) == -1) // #TODO !?
throw WAException("Error setting socket nonblocking!", WAException::SOCKET_EX, WAException::SOCKET_EX_OPEN);
}
|