removed wxCStrData::operator bool(), using c_str() return value as bool doesn't make any sense and any code that stops compiling because of this is almost certainly buggy
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45626 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -200,8 +200,6 @@ public:
|
|||||||
const wchar_t* AsWChar() const;
|
const wchar_t* AsWChar() const;
|
||||||
operator const wchar_t*() const { return AsWChar(); }
|
operator const wchar_t*() const { return AsWChar(); }
|
||||||
|
|
||||||
inline operator bool() const;
|
|
||||||
|
|
||||||
#if !wxUSE_UNICODE
|
#if !wxUSE_UNICODE
|
||||||
inline
|
inline
|
||||||
#endif
|
#endif
|
||||||
@@ -2560,11 +2558,6 @@ inline wxCStrData::~wxCStrData()
|
|||||||
delete m_str;
|
delete m_str;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline wxCStrData::operator bool() const
|
|
||||||
{
|
|
||||||
return !m_str->empty();
|
|
||||||
}
|
|
||||||
|
|
||||||
// simple cases for AsChar() and AsWChar(), the complicated ones are
|
// simple cases for AsChar() and AsWChar(), the complicated ones are
|
||||||
// in string.cpp
|
// in string.cpp
|
||||||
#if wxUSE_UNICODE_WCHAR
|
#if wxUSE_UNICODE_WCHAR
|
||||||
|
Reference in New Issue
Block a user