Avoid ambiguous function calls (too much optimization can hurt!).

This commit is contained in:
Moritz Bunkus 2005-01-03 23:10:24 +00:00
parent b158d8bdb6
commit a8f797767c

View File

@ -165,7 +165,8 @@ tab_attachments::add_attachment(const wxString &file_name) {
i++) {
if (mime_types[i].extensions[0] == 0)
continue;
extensions = split(wxU(mime_types[i].extensions), wxT(" "));
// Don't use wxT(" ") here as it is ambiguous which split() to use then.
extensions = split(wxU(mime_types[i].extensions), wxU(" "));
for (j = 0; j < extensions.size(); j++)
if (!wxStricmp(extensions[j], ext)) {
attch.mime_type = wxU(mime_types[i].name);