From: eduardo.davila@creatis.insa-lyon.fr Date: Tue, 4 Feb 2025 10:16:43 +0000 (+0100) Subject: Clean code X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=b494f66e35ccc3ffb87406098a9c51ebd23f3c21;p=bbtk.git Clean code --- diff --git a/packages/wx/src/bbwxFreeMemoryAlert.cxx b/packages/wx/src/bbwxFreeMemoryAlert.cxx index bef390e..461a7d4 100644 --- a/packages/wx/src/bbwxFreeMemoryAlert.cxx +++ b/packages/wx/src/bbwxFreeMemoryAlert.cxx @@ -5,7 +5,6 @@ #include "bbwxPackage.h" #include -#include 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 }