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:
Vadim Zeitlin
2021-07-11 13:19:40 +01:00
parent 1f2413c461
commit 6d2af9e7a1
4 changed files with 15 additions and 15 deletions

View File

@@ -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");