abandon attempts to make wxAnyStrPtr behave as bool: user-defined logical operators don't short circuit silently breaking existing code so it is better to not provide them at all; instead simply return bool from the new versions taking wxString::const_iterator; advise to use the new versions in the new code and so in our own files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59829 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1271,9 +1271,8 @@ bool wxVariantDataDateTime::Read(wxString& str)
|
||||
return true;
|
||||
}
|
||||
|
||||
if(! m_value.ParseDateTime(str.c_str()/*FIXME-UTF8*/))
|
||||
return false;
|
||||
return true;
|
||||
wxString::const_iterator end;
|
||||
return m_value.ParseDateTime(str, &end) && end == str.end();
|
||||
}
|
||||
|
||||
// wxVariant
|
||||
|
Reference in New Issue
Block a user