X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/68379eaf0ae64d105f8244b1db83e793f7dd83b0..7d3e806d86a159f3af1db1744a75de162e0e1a8d:/src/common/docmdi.cpp?ds=sidebyside diff --git a/src/common/docmdi.cpp b/src/common/docmdi.cpp index 14980bf532..77b81cabbc 100644 --- a/src/common/docmdi.cpp +++ b/src/common/docmdi.cpp @@ -67,8 +67,8 @@ void wxDocMDIParentFrame::Init() void wxDocMDIParentFrame::OnMRUFile(wxCommandEvent& event) { - wxString f(m_docManager->GetHistoryFile(event.GetId() - wxID_FILE1)); - if (f != wxT("")) + wxString f(m_docManager->GetHistoryFile(event.GetId() - wxID_FILE1)); + if (!f.empty()) (void)m_docManager->CreateDocument(f, wxDOC_SILENT); }