Fix wxDir compilation with wxUSE_STD_STRING_CONV_IN_WXSTRING

When enabling this build option, implicit conversion to wchar_t * is
not available, so convert wxString to it explicitly.

Closes #24149.
This commit is contained in:
Scott Hanson 2023-12-19 14:58:50 -05:00 committed by Vadim Zeitlin
parent 44248eb78a
commit 1bf80138e9

View file

@ -75,7 +75,7 @@ CheckFoundMatch(const FIND_STRUCT* finddata, const wxString& filter)
if ( filter.empty() )
return true;
return ::PathMatchSpec(finddata->cFileName, filter) == TRUE;
return ::PathMatchSpec(finddata->cFileName, filter.t_str()) == TRUE;
}
inline bool