From a8f797767c328fdfce240931379cb8a1f3721c27 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 3 Jan 2005 23:10:24 +0000 Subject: [PATCH] Avoid ambiguous function calls (too much optimization can hurt!). --- src/mmg/tab_attachments.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mmg/tab_attachments.cpp b/src/mmg/tab_attachments.cpp index e98badaa2..946640f10 100644 --- a/src/mmg/tab_attachments.cpp +++ b/src/mmg/tab_attachments.cpp @@ -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);