X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/96be256b3e1802de10f45953c41ed33bce399b54..6e204d57c44bdaaace6b0a45409c00a2af43d8ab:/src/motif/mdi.cpp diff --git a/src/motif/mdi.cpp b/src/motif/mdi.cpp index 1dd473c76e..09894eea98 100644 --- a/src/motif/mdi.cpp +++ b/src/motif/mdi.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: mdi.cpp +// Name: src/motif/mdi.cpp // Purpose: MDI classes // Author: Julian Smart // Modified by: @@ -9,10 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma implementation "mdi.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -22,9 +18,12 @@ #endif #include "wx/mdi.h" -#include "wx/menu.h" -#include "wx/settings.h" -#include "wx/icon.h" + +#ifndef WX_PRECOMP + #include "wx/menu.h" + #include "wx/icon.h" + #include "wx/settings.h" +#endif #ifdef __VMS__ #pragma message disable nosimpint @@ -277,7 +276,7 @@ void wxMDIParentFrame::Cascade() // TODO } -void wxMDIParentFrame::Tile() +void wxMDIParentFrame::Tile(wxOrientation WXUNUSED(orient)) { // TODO } @@ -303,7 +302,7 @@ void wxMDIParentFrame::OnMenuHighlight(wxMenuEvent& event) if (GetStatusBar()) { if (event.GetMenuId() == -1) - SetStatusText(""); + SetStatusText(wxEmptyString); else { wxMenuBar *menuBar = (wxMenuBar*) NULL; @@ -314,7 +313,7 @@ void wxMDIParentFrame::OnMenuHighlight(wxMenuEvent& event) if (menuBar) { wxString helpString(menuBar->GetHelpString(event.GetMenuId())); - if (helpString != "") + if (!helpString.empty()) SetStatusText(helpString); } }