From 38510d8e895ffe10b3573709ec6dfc1a3734eeec Mon Sep 17 00:00:00 2001 From: VZ Date: Tue, 26 Jan 2021 17:29:18 +0100 Subject: [PATCH] Normalize whitespace No real changes. --- src/common/webrequest_curl.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/common/webrequest_curl.cpp b/src/common/webrequest_curl.cpp index d82c41e43f..ed484096c8 100644 --- a/src/common/webrequest_curl.cpp +++ b/src/common/webrequest_curl.cpp @@ -390,7 +390,7 @@ public: enum Result { - InvalidResult= 0, + InvalidResult = 0, ReadyForRead = 1, ReadyForWrite = 2, HasError = 4 @@ -435,10 +435,10 @@ private: m_evtHandler = h; } - MessageId GetMessageId() const {return m_messageId;} - wxSOCKET_T GetSocket() const {return m_socket;} - int GetFlags() const {return m_flags;} - wxEvtHandler* GetEvtHandler() const {return m_evtHandler;} + MessageId GetMessageId() const { return m_messageId; } + wxSOCKET_T GetSocket() const { return m_socket; } + int GetFlags() const { return m_flags; } + wxEvtHandler* GetEvtHandler() const { return m_evtHandler; } private: wxSOCKET_T m_socket; @@ -854,7 +854,7 @@ void SocketPoller::ThreadCheckSockets() if ( FD_ISSET(sock, &errorFds) ) { - result |= HasError ; + result |= HasError; } if ( result != InvalidResult && hndlr != NULL ) @@ -891,7 +891,7 @@ wxWebSessionCURL::wxWebSessionCURL() : m_socketPoller = new SocketPoller(); m_timeoutTimer.SetOwner(this); - Bind(wxEVT_TIMER ,&wxWebSessionCURL::TimeoutNotification, this); + Bind(wxEVT_TIMER, &wxWebSessionCURL::TimeoutNotification, this); Bind(wxSocketAction, &wxWebSessionCURL::ProcessSocketPollerResult, this); } @@ -926,7 +926,7 @@ wxWebSessionCURL::CreateRequest(wxWebSession& session, else { curl_multi_setopt(m_handle, CURLMOPT_SOCKETDATA, this); - curl_multi_setopt(m_handle, CURLMOPT_SOCKETFUNCTION,SocketCallback); + curl_multi_setopt(m_handle, CURLMOPT_SOCKETFUNCTION, SocketCallback); curl_multi_setopt(m_handle, CURLMOPT_TIMERDATA, this); curl_multi_setopt(m_handle, CURLMOPT_TIMERFUNCTION, TimerCallback); } @@ -1030,7 +1030,7 @@ void wxWebSessionCURL::TimeoutNotification(wxTimerEvent& WXUNUSED(event)) void wxWebSessionCURL::ProcessTimeoutNotification() { int runningHandles; - curl_multi_socket_action(m_handle, CURL_SOCKET_TIMEOUT, 0,&runningHandles); + curl_multi_socket_action(m_handle, CURL_SOCKET_TIMEOUT, 0, &runningHandles); CheckForCompletedTransfers(); }