From 34a083c928483cc19ffab87d4fb28b31498893a6 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 9 Jul 2009 21:41:46 +0000 Subject: [PATCH] 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 --- docs/changes.txt | 6 ++++++ src/common/windowid.cpp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/changes.txt b/docs/changes.txt index 2f78b33680..87e2375e61 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -253,6 +253,12 @@ Changes in behaviour which may result in compilation errors references have been removed, modifying the returned bitmaps never worked and 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 ----------------------------------------- diff --git a/src/common/windowid.cpp b/src/common/windowid.cpp index 8db065e015..a254d023d7 100644 --- a/src/common/windowid.cpp +++ b/src/common/windowid.cpp @@ -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; #else // !wxUSE_AUTOID_MANAGEMENT // Make sure enough in the range -- 2.45.2