fixed a printf() format warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20177 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2097,13 +2097,13 @@ void wxFileHistory::Load(wxConfigBase& config)
|
|||||||
{
|
{
|
||||||
m_fileHistoryN = 0;
|
m_fileHistoryN = 0;
|
||||||
wxString buf;
|
wxString buf;
|
||||||
buf.Printf(wxT("file%d"), m_fileHistoryN+1);
|
buf.Printf(wxT("file%d"), (int)m_fileHistoryN+1);
|
||||||
wxString historyFile;
|
wxString historyFile;
|
||||||
while ((m_fileHistoryN < m_fileMaxFiles) && config.Read(buf, &historyFile) && (historyFile != wxT("")))
|
while ((m_fileHistoryN < m_fileMaxFiles) && config.Read(buf, &historyFile) && (historyFile != wxT("")))
|
||||||
{
|
{
|
||||||
m_fileHistory[m_fileHistoryN] = copystring((const wxChar*) historyFile);
|
m_fileHistory[m_fileHistoryN] = copystring((const wxChar*) historyFile);
|
||||||
m_fileHistoryN ++;
|
m_fileHistoryN ++;
|
||||||
buf.Printf(wxT("file%d"), m_fileHistoryN+1);
|
buf.Printf(wxT("file%d"), (int)m_fileHistoryN+1);
|
||||||
historyFile = wxT("");
|
historyFile = wxT("");
|
||||||
}
|
}
|
||||||
AddFilesToMenu();
|
AddFilesToMenu();
|
||||||
|
Reference in New Issue
Block a user