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:
@@ -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
|
||||||
-----------------------------------------
|
-----------------------------------------
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user