remove scope-resolution operator from wxLogError() call: this doesn't work any more as it's a macro and not a function now; mention this in the docs

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61366 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-07-09 21:41:46 +00:00
parent c279530ba9
commit 34a083c928
2 changed files with 7 additions and 1 deletions

View File

@@ -253,6 +253,12 @@ Changes in behaviour which may result in compilation errors
references have been removed, modifying the returned bitmaps never worked and references have been removed, modifying the returned bitmaps never worked and
now results in compile-time error. now results in compile-time error.
- wxLogXXX() are now macros, not functions. Because of this calling them with
an explicit scope resolution operator ("::wxLogError()") doesn't work any
longer, just remove it. Also notice that using them inside an "if" statement
without enclosing parentheses results in warnings from g++ with -Wparentheses,
add parentheses around the if statement body to work around it.
Deprecated methods and their replacements Deprecated methods and their replacements
----------------------------------------- -----------------------------------------

View File

@@ -212,7 +212,7 @@ wxWindowID wxIdManager::ReserveId(int count)
} }
} }
::wxLogError(_("Out of window IDs. Recommend shutting down application.")); wxLogError(_("Out of window IDs. Recommend shutting down application."));
return wxID_NONE; return wxID_NONE;
#else // !wxUSE_AUTOID_MANAGEMENT #else // !wxUSE_AUTOID_MANAGEMENT
// Make sure enough in the range // Make sure enough in the range