Don't pass raw urls to logging functions in the wxWebView sample as they can contain percent characters which then cause format string errors.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@67767 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Steve Lamerton
2011-05-19 20:43:45 +00:00
parent be19c55608
commit a427ca2713

View File

@@ -281,7 +281,7 @@ public:
frame->Layout(); frame->Layout();
} }
wxLogMessage("Navigation request to '" + evt.GetHref() + "' (target='" + wxLogMessage("%s", "Navigation request to '" + evt.GetHref() + "' (target='" +
evt.GetTarget() + "')"); evt.GetTarget() + "')");
wxASSERT(m_browser_ctrl->IsBusy()); wxASSERT(m_browser_ctrl->IsBusy());
@@ -301,7 +301,7 @@ public:
*/ */
void onNavigationComplete(wxWebNavigationEvent& evt) void onNavigationComplete(wxWebNavigationEvent& evt)
{ {
wxLogMessage("Navigation complete; url='" + evt.GetHref() + "'"); wxLogMessage("%s", "Navigation complete; url='" + evt.GetHref() + "'");
updateState(); updateState();
} }
@@ -310,7 +310,7 @@ public:
*/ */
void onDocumentLoaded(wxWebNavigationEvent& evt) void onDocumentLoaded(wxWebNavigationEvent& evt)
{ {
wxLogMessage("Document loaded; url='" + evt.GetHref() + "'"); wxLogMessage("%s", "Document loaded; url='" + evt.GetHref() + "'");
updateState(); updateState();
m_browser_ctrl->GetZoom(); m_browser_ctrl->GetZoom();