git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68222
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/sharedptr.h"
#include "wx/vector.h"
#include "wx/sharedptr.h"
#include "wx/vector.h"
class WXDLLIMPEXP_WEB wxWebViewIE : public wxWebView
{
class WXDLLIMPEXP_WEB wxWebViewIE : public wxWebView
{
float GetIEOpticalZoom();
void onActiveXEvent(wxActiveXEvent& evt);
float GetIEOpticalZoom();
void onActiveXEvent(wxActiveXEvent& evt);
- void onEraseBg(wxEraseEvent& evt) {}
+ void onEraseBg(wxEraseEvent&) {}
//(HRESULT)(out.GetLong()) == S_OK;
}
//(HRESULT)(out.GetLong()) == S_OK;
}
-void wxWebViewIE::SetPage(const wxString& html, const wxString& baseUrl)
+void wxWebViewIE::SetPage(const wxString& html, const wxString&)
{
LoadUrl("about:blank");
{
LoadUrl("about:blank");
bool wxWebViewIE::CanGoForward()
{
if(m_historyEnabled)
bool wxWebViewIE::CanGoForward()
{
if(m_historyEnabled)
- return m_historyPosition != m_historyList.size() - 1;
+ return m_historyPosition != static_cast<int>(m_historyList.size()) - 1;
if(m_historyList[i].get() == item.get())
pos = i;
}
if(m_historyList[i].get() == item.get())
pos = i;
}
- wxASSERT_MSG(pos != m_historyList.size(), "invalid history item");
+ wxASSERT_MSG(pos != static_cast<int>(m_historyList.size()),
+ "invalid history item");
m_historyLoadingFromList = true;
LoadUrl(item->GetUrl());
m_historyPosition = pos;
m_historyLoadingFromList = true;
LoadUrl(item->GetUrl());
m_historyPosition = pos;
wxVector<wxSharedPtr<wxWebHistoryItem> > forwardhist;
//As we don't have std::copy or an iterator constructor in the wxwidgets
//native vector we construct it by hand
wxVector<wxSharedPtr<wxWebHistoryItem> > forwardhist;
//As we don't have std::copy or an iterator constructor in the wxwidgets
//native vector we construct it by hand
- for(int i = m_historyPosition + 1; i < m_historyList.size(); i++)
+ for(int i = m_historyPosition + 1; i < static_cast<int>(m_historyList.size()); i++)
{
forwardhist.push_back(m_historyList[i]);
}
{
forwardhist.push_back(m_historyList[i]);
}
{
//If we are not at the end of the list, then erase everything
//between us and the end before adding the new page
{
//If we are not at the end of the list, then erase everything
//between us and the end before adding the new page
- if(m_historyPosition != m_historyList.size() - 1)
+ if(m_historyPosition != static_cast<int>(m_historyList.size()) - 1)
{
m_historyList.erase(m_historyList.begin() + m_historyPosition + 1,
m_historyList.end());
{
m_historyList.erase(m_historyList.begin() + m_historyPosition + 1,
m_historyList.end());