Clean code
authoreduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Tue, 4 Feb 2025 10:16:43 +0000 (11:16 +0100)
committereduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Tue, 4 Feb 2025 10:16:43 +0000 (11:16 +0100)
packages/wx/src/bbwxFreeMemoryAlert.cxx

index bef390eeadb845b6fb06a617c9cbce9d9889bfa8..461a7d4865ee5b536f3dac8c2d2e735dcd94c8bb 100644 (file)
@@ -5,7 +5,6 @@
 #include "bbwxPackage.h"
 
 #include <wx/msgdlg.h>
-#include <wx/app.h>
 
 namespace bbwx
 {
@@ -42,7 +41,7 @@ void FreeMemoryAlert::Process()
         */
 
         
-        wxMessageDialog *dial = new wxMessageDialog( wxApp::GetMainTopWindow() , wxT("Please select a Contour"), wxT("Warning"), wxOK | wxSTAY_ON_TOP| wxICON_EXCLAMATION  ) ;
+        wxMessageDialog *dial = new wxMessageDialog( NULL , wxT("Please select a Contour"), wxT("Warning"), wxOK | wxSTAY_ON_TOP| wxICON_EXCLAMATION  ) ;
         dial->ShowModal();
        } // if memfree
 }