From: Vadim Zeitlin Date: Tue, 22 Jun 2010 09:55:11 +0000 (+0000) Subject: Add an explicit t_str() to fix wxMSW compilation with wxUSE_STL=1. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a49b09f5afab79ffb5a483ecb4be4c4abf4d3531?ds=inline Add an explicit t_str() to fix wxMSW compilation with wxUSE_STL=1. wxString is not implicitly convertible to TCHAR* in this case and we need to use t_str() explicitly. Closes #12169. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64685 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/translation.cpp b/src/common/translation.cpp index 83b6131294..23b57a056c 100644 --- a/src/common/translation.cpp +++ b/src/common/translation.cpp @@ -1839,7 +1839,7 @@ wxArrayString wxResourceTranslationsLoader::GetAvailableTranslations(const wxStr data.prefix.MakeLower(); // resource names are case insensitive if ( !EnumResourceNames(GetModule(), - GetResourceType(), + GetResourceType().t_str(), EnumTranslations, reinterpret_cast(&data)) ) {