remove #if around operator&&(), its needed for other compilers too (Sun CC 5.9) and doesnt seem to hurt the ones which do not need it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -117,12 +117,10 @@ public:
|
|||||||
// operator unspecified_bool_type() would only makes the ambiguity worse.)
|
// operator unspecified_bool_type() would only makes the ambiguity worse.)
|
||||||
operator bool() const { return m_value != 0; }
|
operator bool() const { return m_value != 0; }
|
||||||
bool operator!() const { return !((bool)*this); }
|
bool operator!() const { return !((bool)*this); }
|
||||||
#if (defined(__VISUALC__) && __VISUALC__ < 1400) || \
|
|
||||||
defined(__DIGITALMARS__) || defined(__BORLANDC__)
|
// And this one is needed by some (not all, but not using ifdefs makes the
|
||||||
// We need this for VC++ < 8 or DigitalMars and expressions like
|
// code easier) compilers to parse "str[0] && *p" successfully
|
||||||
// "str[0] && *p":
|
|
||||||
bool operator&&(bool v) const { return (bool)*this && v; }
|
bool operator&&(bool v) const { return (bool)*this && v; }
|
||||||
#endif
|
|
||||||
|
|
||||||
// Assignment operators:
|
// Assignment operators:
|
||||||
wxUniChar& operator=(const wxUniChar& c) { m_value = c.m_value; return *this; }
|
wxUniChar& operator=(const wxUniChar& c) { m_value = c.m_value; return *this; }
|
||||||
|
Reference in New Issue
Block a user