Fix AIX and gcc 2.7.2.3 bustage -- I was relying on implicit conversion to pick the right overloaded function template. Make it faster too.

This commit is contained in:
dbaron%fas.harvard.edu 2001-10-16 06:27:39 +00:00
Родитель 82cd057ad7
Коммит 426c6eeb5b
1 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -3664,12 +3664,10 @@ nsresult nsPluginHostImpl::SetUpDefaultPluginInstance(const char *aMimeType, nsI
mimetype = aMimeType;
nsCAutoString contractID(
NS_LITERAL_CSTRING(NS_INLINE_PLUGIN_CONTRACTID_PREFIX "*"));
GetPluginFactory("*", getter_AddRefs(plugin));
result = CallCreateInstance(contractID, &instance);
result = CallCreateInstance(NS_INLINE_PLUGIN_CONTRACTID_PREFIX "*",
&instance);
// couldn't create an XPCOM plugin, try to create wrapper for a legacy plugin
if (NS_FAILED(result))