]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/dialog.cpp
use const for xpm icons
[wxWidgets.git] / src / mac / carbon / dialog.cpp
index 50cbb8c5ae8c245da68b0b05b09651bb5d82fb90..2a127e76319c5a884278d7f9461894cb98fb2573 100644 (file)
@@ -106,11 +106,6 @@ bool wxDialog::IsModal() const
 }
 
 
-bool wxDialog::IsModalShowing() const
-{
-    return wxModalDialogs.Find((wxDialog *)this) != NULL; // const_cast
-}
-
 bool wxDialog::Show(bool show)
 {
     if ( !wxDialogBase::Show(show) )
@@ -144,7 +139,7 @@ extern bool s_macIsInModalLoop ;
 
 void wxDialog::DoShowModal()
 {
-    wxCHECK_RET( !IsModalShowing(), wxT("DoShowModal() called twice") );
+    wxCHECK_RET( !IsModal(), wxT("DoShowModal() called twice") );
 
     wxModalDialogs.Append(this);
 
@@ -158,7 +153,7 @@ void wxDialog::DoShowModal()
     s_macIsInModalLoop = true ;
 #endif
 
-    while ( IsModalShowing() )
+    while ( IsModal() )
     {
         wxTheApp->MacDoOneEvent() ;
         // calls process idle itself