wxNode* node = m_value.First();
while (node)
{
wxVariant* var = (wxVariant*) node->Data();
if (node != m_value.First())
wxNode* node = m_value.First();
while (node)
{
wxVariant* var = (wxVariant*) node->Data();
if (node != m_value.First())
wxVariantDataStringList& listData = (wxVariantDataStringList&) data;
wxNode* node1 = m_value.First();
wxNode* node2 = listData.GetValue().First();
while (node1 && node2)
{
wxVariantDataStringList& listData = (wxVariantDataStringList&) data;
wxNode* node1 = m_value.First();
wxNode* node2 = listData.GetValue().First();
while (node1 && node2)
{
virtual void Copy(wxVariantData& data);
virtual bool Eq(wxVariantData& data) const;
virtual bool Read(wxString& str);
virtual void Copy(wxVariantData& data);
virtual bool Eq(wxVariantData& data) const;
virtual bool Read(wxString& str);
wxVariantDataVoidPtr& otherData = (wxVariantDataVoidPtr&) data;
return (otherData.m_value == m_value);
}
wxVariantDataVoidPtr& otherData = (wxVariantDataVoidPtr&) data;
return (otherData.m_value == m_value);
}
wxVariant::wxVariant(bool val, const wxString& name)
{
m_data = new wxVariantDataBool(val);
m_name = name;
}
wxVariant::wxVariant(bool val, const wxString& name)
{
m_data = new wxVariantDataBool(val);
m_name = name;
}
// We can't return a reference to a variant for a string list, since the string
// is actually stored as a char*, not a variant.
// We can't return a reference to a variant for a string list, since the string
// is actually stored as a char*, not a variant.
return (wxList&) ((wxVariantDataList*) m_data)->GetValue();
}
wxStringList& wxVariant::GetStringList() const
{
return (wxList&) ((wxVariantDataList*) m_data)->GetValue();
}
wxStringList& wxVariant::GetStringList() const
{
- else if (type == "string")
- *value = atol((const char*) ((wxVariantDataString*)GetData())->GetValue());
+#endif
+ else if (type == wxT("string"))
+ *value = wxAtol((const wxChar*) ((wxVariantDataString*)GetData())->GetValue());
- else if (type == "string")
- *value = (double) atof((const char*) ((wxVariantDataString*)GetData())->GetValue());
+#endif
+ else if (type == wxT("string"))
+ *value = (double) wxAtof((const wxChar*) ((wxVariantDataString*)GetData())->GetValue());