]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/string.h
removed wxCStrData::operator bool(), using c_str() return value as bool doesn't make...
[wxWidgets.git] / include / wx / string.h
index 9efab68ffb602d9203e5017d3cb10329c1c214fb..83ca3c62ee4e0a9c1289c503e769c647c2e3e2b7 100644 (file)
@@ -200,8 +200,6 @@ public:
     const wchar_t* AsWChar() const;
     operator const wchar_t*() const { return AsWChar(); }
 
-    inline operator bool() const;
-
 #if !wxUSE_UNICODE
     inline
 #endif
@@ -2560,11 +2558,6 @@ inline wxCStrData::~wxCStrData()
         delete m_str;
 }
 
-inline wxCStrData::operator bool() const
-{
-    return !m_str->empty();
-}
-
 // simple cases for AsChar() and AsWChar(), the complicated ones are
 // in string.cpp
 #if wxUSE_UNICODE_WCHAR