From 621ac7b903ae89ed49dedc7ade58c14a8f771e38 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 16 Dec 2002 23:08:31 +0000 Subject: [PATCH] fixed copy/paste error git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/utilscmn.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/common/utilscmn.cpp b/src/common/utilscmn.cpp index 32e2332a52..ee22bc1b48 100644 --- a/src/common/utilscmn.cpp +++ b/src/common/utilscmn.cpp @@ -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; }