X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/55d99c7a77789ff4904bf96eddca3715eb5af9b9..fa275e864825d4fbd99d6a3ccb911998fce13a02:/src/common/docview.cpp diff --git a/src/common/docview.cpp b/src/common/docview.cpp index a88869b84f..9b8de09018 100644 --- a/src/common/docview.cpp +++ b/src/common/docview.cpp @@ -2097,13 +2097,13 @@ void wxFileHistory::Load(wxConfigBase& config) { m_fileHistoryN = 0; wxString buf; - buf.Printf(wxT("file%d"), m_fileHistoryN+1); + buf.Printf(wxT("file%d"), (int)m_fileHistoryN+1); wxString historyFile; while ((m_fileHistoryN < m_fileMaxFiles) && config.Read(buf, &historyFile) && (historyFile != wxT(""))) { m_fileHistory[m_fileHistoryN] = copystring((const wxChar*) historyFile); m_fileHistoryN ++; - buf.Printf(wxT("file%d"), m_fileHistoryN+1); + buf.Printf(wxT("file%d"), (int)m_fileHistoryN+1); historyFile = wxT(""); } AddFilesToMenu(); @@ -2115,7 +2115,7 @@ void wxFileHistory::Save(wxConfigBase& config) for (i = 0; i < m_fileHistoryN; i++) { wxString buf; - buf.Printf(wxT("file%d"), i+1); + buf.Printf(wxT("file%d"), (int)i+1); config.Write(buf, wxString(m_fileHistory[i])); } }