Use wxFileName::MakeAbsolute() instead of Normalize()
Make the code more clear by being more explicit about what it does. No real changes and no changes in behaviour at all.
This commit is contained in:
@@ -575,15 +575,15 @@ MyFrame::MyFrame()
|
||||
m_fileHistory->UseMenu(m_fileHistoryMenu);
|
||||
|
||||
wxFileName fn( "menu.cpp" );
|
||||
fn.Normalize();
|
||||
fn.MakeAbsolute();
|
||||
m_fileHistory->AddFileToHistory( fn.GetFullPath() );
|
||||
|
||||
fn = "Makefile.in";
|
||||
fn.Normalize();
|
||||
fn.MakeAbsolute();
|
||||
m_fileHistory->AddFileToHistory( fn.GetFullPath() );
|
||||
|
||||
fn.Assign("minimal", "minimal", "cpp");
|
||||
fn.Normalize();
|
||||
fn.MakeAbsolute();
|
||||
m_fileHistory->AddFileToHistory( fn.GetFullPath() );
|
||||
|
||||
fileMenu->AppendSubMenu(m_fileHistoryMenu, "Sample file history");
|
||||
|
Reference in New Issue
Block a user