// implementation
// ============================================================================
-wxThemeInfo *wxTheme::ms_allThemes = (wxThemeInfo *)NULL;
-wxTheme *wxTheme::ms_theme = (wxTheme *)NULL;
+wxThemeInfo *wxTheme::ms_allThemes = NULL;
+wxTheme *wxTheme::ms_theme = NULL;
// ----------------------------------------------------------------------------
// "dynamic" theme creation
// ----------------------------------------------------------------------------
wxThemeInfo::wxThemeInfo(Constructor c,
- const wxChar *n,
- const wxChar *d)
+ const wxString& n,
+ const wxString& d)
: name(n), desc(d), ctor(c)
{
// insert us (in the head of) the linked list
info = info->next;
}
- return (wxTheme *)NULL;
+ return NULL;
}
// ----------------------------------------------------------------------------
wxString nameDefTheme;
// use the environment variable first
- const wxChar *p = wxGetenv(_T("WXTHEME"));
+ const wxChar *p = wxGetenv(wxT("WXTHEME"));
if ( p )
{
nameDefTheme = p;
// wxDelegateTheme
// ----------------------------------------------------------------------------
-wxDelegateTheme::wxDelegateTheme(const wxChar *theme)
+wxDelegateTheme::wxDelegateTheme(const wxString& theme)
{
m_themeName = theme;
m_theme = NULL;