X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/68379eaf0ae64d105f8244b1db83e793f7dd83b0..2b9a7d4cc2f5f55df3d83f7cf2160cf9a509a4f2:/src/common/docmdi.cpp 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); }