Tiny simplification in wxWebRequestWinHTTP code
Add and use SetFailed(error) function for symmetry with the existing SetFailedWithLastError().
This commit is contained in:
@@ -109,7 +109,11 @@ private:
|
||||
|
||||
void CreateResponse();
|
||||
|
||||
void SetFailedWithLastError();
|
||||
// Retrieve the error message corresponding to the given error and set the
|
||||
// state to failed with this message as error string.
|
||||
void SetFailed(DWORD errorCode);
|
||||
|
||||
void SetFailedWithLastError() { SetFailed(::GetLastError()); }
|
||||
|
||||
friend class wxWebAuthChallengeWinHTTP;
|
||||
|
||||
|
Reference in New Issue
Block a user