Initialize wxWebViewChromium members in their declarations

No real changes, but ensure that all of them are always initialized.
This commit is contained in:
Vadim Zeitlin 2023-09-07 01:28:19 +02:00
parent 81283f84dd
commit 80ce14910c
2 changed files with 5 additions and 10 deletions

View file

@ -136,13 +136,13 @@ private:
//History related variables, we currently use our own implementation
wxVector<wxSharedPtr<wxWebViewHistoryItem> > m_historyList;
int m_historyPosition;
bool m_historyLoadingFromList;
bool m_historyEnabled;
int m_historyPosition = -1;
bool m_historyLoadingFromList = false;
bool m_historyEnabled = true;
//We need to store the title and zoom ourselves
wxString m_title;
wxWebViewZoom m_zoomLevel;
wxWebViewZoom m_zoomLevel = wxWEBVIEW_ZOOM_MEDIUM;
// Current main frame page source
wxString m_pageSource;
@ -155,7 +155,7 @@ private:
// We also friend wxCEFClientHandler so it can access m_implData.
friend class wxCEF::ClientHandler;
wxCEF::ClientHandler* m_clientHandler;
wxCEF::ClientHandler* m_clientHandler = nullptr;
friend class wxWebViewChromiumModule;
static bool ms_cefInitialized;

View file

@ -398,11 +398,6 @@ bool wxWebViewChromium::Create(wxWindow* parent,
MSWDisableComposited();
#endif // __WXMSW__
m_historyLoadingFromList = false;
m_historyEnabled = true;
m_historyPosition = -1;
m_zoomLevel = wxWEBVIEW_ZOOM_MEDIUM;
m_implData = new ImplData{};
m_clientHandler = new ClientHandler{*this};