]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed copy/paste error
authorRobin Dunn <robin@alldunn.com>
Mon, 16 Dec 2002 23:08:31 +0000 (23:08 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 16 Dec 2002 23:08:31 +0000 (23:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/utilscmn.cpp

index 32e2332a52ae40e716d27897b24e5ad35415c500..7c16fec3fe598a9260efa17d7886fa2b4ce86974 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;
 }