X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/be3dcfb31a8eb896778c47292a1d262ef90812aa..28efe6544f28ba7b37a77c033901fdd6f3978b82:/include/wx/unichar.h diff --git a/include/wx/unichar.h b/include/wx/unichar.h index f78e5806bc..f035f3892f 100644 --- a/include/wx/unichar.h +++ b/include/wx/unichar.h @@ -117,12 +117,10 @@ public: // operator unspecified_bool_type() would only makes the ambiguity worse.) operator bool() const { return m_value != 0; } bool operator!() const { return !((bool)*this); } -#if (defined(__VISUALC__) && __VISUALC__ < 1400) || \ - defined(__DIGITALMARS__) || defined(__BORLANDC__) - // We need this for VC++ < 8 or DigitalMars and expressions like - // "str[0] && *p": + + // And this one is needed by some (not all, but not using ifdefs makes the + // code easier) compilers to parse "str[0] && *p" successfully bool operator&&(bool v) const { return (bool)*this && v; } -#endif // Assignment operators: wxUniChar& operator=(const wxUniChar& c) { m_value = c.m_value; return *this; }