return false;
}
-#endif //2.4 compat
+#endif //2.4 compat
/*
* wxVariantDataLong
#if wxUSE_STD_IOSTREAM
-bool wxVariantDataDateTime::Write(wxSTD ostream& str) const
+bool wxVariantDataDateTime::Write(wxSTD ostream& WXUNUSED(str)) const
{
// Not implemented
return false;
#if wxUSE_STD_IOSTREAM
-bool wxVariantDataArrayString::Write(wxSTD ostream& str) const
+bool wxVariantDataArrayString::Write(wxSTD ostream& WXUNUSED(str)) const
{
// Not implemented
return false;
}
else
{
- if (GetType() != wxT("list"))
+ if (!GetType().IsSameAs(wxT("list")))
{
delete m_data;
m_data = NULL;
{
wxString val(((wxVariantDataString*)GetData())->GetValue());
val.MakeLower();
- if (val == wxT("true") || val == wxT("yes"))
+ if (val == wxT("true") || val == wxT("yes") || val == wxT('1') )
*value = true;
- else if (val == wxT("false") || val == wxT("no"))
+ else if (val == wxT("false") || val == wxT("no") || val == wxT('0') )
*value = false;
else
return false;