]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/utilscmn.cpp
removed wxTLW cruft now that all ports have it
[wxWidgets.git] / src / common / utilscmn.cpp
index 32e2332a52ae40e716d27897b24e5ad35415c500..ee22bc1b48f1437902896fb6c76fffac7f93899c 100644 (file)
@@ -872,14 +872,15 @@ wxWindowDisabler::~wxWindowDisabler()
 
 // Yield to other apps/messages and disable user input to all windows except
 // the given one
-bool wxSafeYield(wxWindow *win, bool onlyIfNeeded = FALSE)
+bool wxSafeYield(wxWindow *win, bool onlyIfNeeded)
 {
     wxWindowDisabler wd(win);
 
+    bool rc;
     if (onlyIfNeeded)
-        bool rc = wxYieldIfNeeded();
+        rc = wxYieldIfNeeded();
     else
-        bool rc = wxYield();
+        rc = wxYield();
 
     return rc;
 }