diff --git a/include/wx/setup_inc.h b/include/wx/setup_inc.h index ed372c2b68..99e95fd8b7 100644 --- a/include/wx/setup_inc.h +++ b/include/wx/setup_inc.h @@ -758,7 +758,7 @@ // Use the Edge (Chromium) wxWebView backend (Requires WebView2 SDK) // -// Default is 0 +// Default is 0 because WebView2 is not always available, set it to 1 if you do have it. // // Recommended setting: 1 when building for Windows with WebView2 SDK #define wxUSE_WEBVIEW_EDGE 0 @@ -1556,4 +1556,3 @@ #define wxUSE_THEME_MONO 0 #define wxUSE_THEME_WIN32 0 - diff --git a/interface/wx/webview.h b/interface/wx/webview.h index 4cfc87131a..d27364b325 100644 --- a/interface/wx/webview.h +++ b/interface/wx/webview.h @@ -449,7 +449,7 @@ public: wxSharedPtr factory); /** - Allows to check if a specific backend is currently available + Allows to check if a specific backend is currently available. @since 3.1.4 */ diff --git a/src/common/webview.cpp b/src/common/webview.cpp index 802cf00171..e7cd9c158f 100644 --- a/src/common/webview.cpp +++ b/src/common/webview.cpp @@ -91,7 +91,7 @@ void wxWebView::RegisterFactory(const wxString& backend, bool wxWebView::IsBackendAvailable(const wxString& backend) { wxStringWebViewFactoryMap::iterator iter = FindFactory(backend); - return (iter != m_factoryMap.end()); + return iter != m_factoryMap.end(); } // static diff --git a/src/msw/webview_edge.cpp b/src/msw/webview_edge.cpp index 9d02531ce7..5e7a17ebcc 100644 --- a/src/msw/webview_edge.cpp +++ b/src/msw/webview_edge.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: source/msw/webview_edge.cpp +// Name: src/msw/webview_edge.cpp // Purpose: wxMSW Edge Chromium wxWebView backend implementation // Author: Markus Pingel // Created: 2019-12-15 @@ -62,7 +62,7 @@ bool wxWebViewEdge::IsAvailable() ms_isAvailable = 1; } - return (ms_isAvailable == 1); + return ms_isAvailable == 1; } bool wxWebViewEdge::Initialize()