Remove wxWebSessionBackendDefault and just use empty string
There doesn't seem to be any reason to have this constant, so don't define it and just interpret empty value of backend as meaning to choose the default one in wxWebSession::New().
This commit is contained in:
@@ -193,7 +193,6 @@ private:
|
||||
wxWebRequestImplPtr m_impl;
|
||||
};
|
||||
|
||||
extern WXDLLIMPEXP_DATA_NET(const char) wxWebSessionBackendDefault[];
|
||||
extern WXDLLIMPEXP_DATA_NET(const char) wxWebSessionBackendWinHTTP[];
|
||||
extern WXDLLIMPEXP_DATA_NET(const char) wxWebSessionBackendURLSession[];
|
||||
extern WXDLLIMPEXP_DATA_NET(const char) wxWebSessionBackendCURL[];
|
||||
@@ -213,7 +212,7 @@ public:
|
||||
// factory functions to get access to them.
|
||||
static wxWebSession& GetDefault();
|
||||
|
||||
static wxWebSession New(const wxString& backend = wxWebSessionBackendDefault);
|
||||
static wxWebSession New(const wxString& backend = wxString());
|
||||
|
||||
// Can be used to check if the given backend is available without actually
|
||||
// creating a session using it.
|
||||
|
Reference in New Issue
Block a user