X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3b0e208f3fc2ab582687ab9bba5de2f4279d51c1..c81394808bf7efd84e4294e44a9a9a7b7f6dd8a9:/src/os2/settings.cpp?ds=sidebyside diff --git a/src/os2/settings.cpp b/src/os2/settings.cpp index b384ebb034..484be7380c 100644 --- a/src/os2/settings.cpp +++ b/src/os2/settings.cpp @@ -70,8 +70,7 @@ void wxSystemSettingsModule::OnExit() { sm_optionNames.Clear(); sm_optionValues.Clear(); - delete gs_fontDefault; - gs_fontDefault = NULL; + wxDELETE(gs_fontDefault); } wxColour wxSystemSettingsNative::GetColour( @@ -173,6 +172,7 @@ wxColour wxSystemSettingsNative::GetColour( break; case wxSYS_COLOUR_HIGHLIGHTTEXT: + case wxSYS_COLOUR_LISTBOXHIGHLIGHTTEXT: vSysClr = SYSCLR_HILITEFOREGROUND; break; @@ -248,7 +248,7 @@ wxFont wxSystemSettingsNative::GetFont( wxFONTWEIGHT_NORMAL ); break; default: - wxFAIL_MSG( _T("stock font not found") ); + wxFAIL_MSG( wxT("stock font not found") ); return GetFont(wxSYS_ANSI_VAR_FONT); }