Remove unneeded asserts
parent
8518d22760
commit
717a3002be
|
|
@ -94,7 +94,7 @@ public:
|
|||
{if (result == static_cast<socket_t>(SOCKET_ERROR)) HandleError(operation);}
|
||||
#ifdef USE_WINDOWS_STYLE_SOCKETS
|
||||
void CheckAndHandleError(const char *operation, BOOL result) const
|
||||
{CRYPTOPP_ASSERT(result==TRUE || result==FALSE); if (!result) HandleError(operation);}
|
||||
{if (!result) HandleError(operation);}
|
||||
void CheckAndHandleError(const char *operation, bool result) const
|
||||
{if (!result) HandleError(operation);}
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ protected:
|
|||
virtual HANDLE GetHandle() const =0;
|
||||
virtual void HandleError(const char *operation) const;
|
||||
void CheckAndHandleError(const char *operation, BOOL result) const
|
||||
{CRYPTOPP_ASSERT(result==TRUE || result==FALSE); if (!result) HandleError(operation);}
|
||||
{if (!result) HandleError(operation);}
|
||||
};
|
||||
|
||||
//! \brief Pipe-based implementation of NetworkReceiver
|
||||
|
|
|
|||
Loading…
Reference in New Issue