{} ;
}
-bool wxEnumData::HasEnumMemberValue(const wxChar *name, int *value)
+bool wxEnumData::HasEnumMemberValue(const wxChar *name, int *value) const
{
int i;
for (i = 0; m_members[i].m_name ; i++ )
return false ;
}
-int wxEnumData::GetEnumMemberValue(const wxChar *name)
+int wxEnumData::GetEnumMemberValue(const wxChar *name) const
{
int i;
for (i = 0; m_members[i].m_name ; i++ )
return 0 ;
}
-const wxChar *wxEnumData::GetEnumMemberName(int value)
+const wxChar *wxEnumData::GetEnumMemberName(int value) const
{
int i;
for (i = 0; m_members[i].m_name ; i++)
return wxT("") ;
}
-int wxEnumData::GetEnumMemberValueByIndex( int idx )
+int wxEnumData::GetEnumMemberValueByIndex( int idx ) const
{
// we should cache the count in order to avoid out-of-bounds errors
return m_members[idx].m_value ;
}
-const wxChar * wxEnumData::GetEnumMemberNameByIndex( int idx )
+const wxChar * wxEnumData::GetEnumMemberNameByIndex( int idx ) const
{
// we should cache the count in order to avoid out-of-bounds errors
return m_members[idx].m_name ;
{
int intdata ;
wxSscanf(s, _T("%d"), &intdata ) ;
- data = bool(intdata) ;
+ data = (bool)intdata ;
}
template<> void wxStringWriteValue(wxString &s , const bool &data )