1. NOT_FOUND -> wxNOT_FOUND
2. wxString::Left(), Right(), Before(), After() clean up 3. wxLocale updates git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -57,11 +57,11 @@ bool wxMatchMimeType(const wxString& mime_obj, const wxString& type)
|
||||
if (mime_obj.Find('*') != -1) {
|
||||
wxString part_str1[2], part_str2[2];
|
||||
|
||||
part_str1[0] = mime_obj.Left('/');
|
||||
part_str1[1] = mime_obj.After('/');
|
||||
part_str1[0] = mime_obj.BeforeFirst('/');
|
||||
part_str1[1] = mime_obj.AfterFirst('/');
|
||||
|
||||
part_str2[0] = type.Left('/');
|
||||
part_str2[1] = type.After('/');
|
||||
part_str2[0] = type.BeforeFirst('/');
|
||||
part_str2[1] = type.AfterFirst('/');
|
||||
|
||||
if (part_str1[0] == "*" && part_str1[1] == "*")
|
||||
return TRUE;
|
||||
|
Reference in New Issue
Block a user