From ce0de68f133669ff5dcd976123cf724db7d33064 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 22 Oct 2017 00:00:26 +0200 Subject: [PATCH] Fix recurring "messege" typo in webview sample --- samples/webview/webview.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/samples/webview/webview.cpp b/samples/webview/webview.cpp index 0ca29d6d78..9f5e44a43e 100644 --- a/samples/webview/webview.cpp +++ b/samples/webview/webview.cpp @@ -136,8 +136,9 @@ public: void OnScrollLineDown(wxCommandEvent&) { m_browser->LineDown(); } void OnScrollPageUp(wxCommandEvent&) { m_browser->PageUp(); } void OnScrollPageDown(wxCommandEvent&) { m_browser->PageDown(); } - void RunScript(const wxString& javascript, wxString* result = NULL, - const wxString& messege = "Click OK to run JavaScript."); + void RunScript(const wxString& javascript, + wxString* result = NULL, + const wxString& message = "Click OK to run JavaScript."); void OnRunScriptString(wxCommandEvent& evt); void OnRunScriptInteger(wxCommandEvent& evt); void OnRunScriptDouble(wxCommandEvent& evt); @@ -1050,9 +1051,9 @@ void WebFrame::OnHistory(wxCommandEvent& evt) m_browser->LoadHistoryItem(m_histMenuItems[evt.GetId()]); } -void WebFrame::RunScript(const wxString& javascript, wxString* result, const wxString& messege) +void WebFrame::RunScript(const wxString& javascript, wxString* result, const wxString& message) { - wxTextEntryDialog dialog(this, messege, wxGetTextFromUserPromptStr, javascript, wxOK|wxCANCEL|wxCENTRE|wxTE_MULTILINE); + wxTextEntryDialog dialog(this, message, wxGetTextFromUserPromptStr, javascript, wxOK|wxCANCEL|wxCENTRE|wxTE_MULTILINE); if( dialog.ShowModal() == wxID_OK ) { if ( m_browser->RunScript(dialog.GetValue(), result))