This commit is contained in:
scc%mozilla.org 2000-09-03 03:25:42 +00:00
Родитель 766ce2dea2
Коммит aa10bae8a2
2 изменённых файлов: 12 добавлений и 2 удалений

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

@ -2951,7 +2951,12 @@ LoadXPCOMPlugin(nsIComponentManager* aComponentManager,
// To figure out the filename of the plugin, we'll need to get the
// plugin's CID, and then navigate through the XPCOM registry to
// pull out the DLL name to which the CID is registered.
nsAutoString path( NS_READABLE_CAST(NS_LITERAL_STRING("software/mozilla/XPCOM/classID/")) + NS_READABLE_CAST(NS_ConvertASCIItoUCS2(aCID)) );
NS_NAMED_LITERAL_STRING(prefix, "software/mozilla/XPCOM/classID/");
NS_ConvertASCIItoUCS2 suffix(aCID);
const nsAReadableString& prefixRef = prefix;
const nsAReadableString& suffixRef = suffix;
nsAutoString path(prefixRef+suffixRef);
// this contortion to append is a hack until I can figure out why the right |operator+| is not found
// on some platforms

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

@ -2951,7 +2951,12 @@ LoadXPCOMPlugin(nsIComponentManager* aComponentManager,
// To figure out the filename of the plugin, we'll need to get the
// plugin's CID, and then navigate through the XPCOM registry to
// pull out the DLL name to which the CID is registered.
nsAutoString path( NS_READABLE_CAST(NS_LITERAL_STRING("software/mozilla/XPCOM/classID/")) + NS_READABLE_CAST(NS_ConvertASCIItoUCS2(aCID)) );
NS_NAMED_LITERAL_STRING(prefix, "software/mozilla/XPCOM/classID/");
NS_ConvertASCIItoUCS2 suffix(aCID);
const nsAReadableString& prefixRef = prefix;
const nsAReadableString& suffixRef = suffix;
nsAutoString path(prefixRef+suffixRef);
// this contortion to append is a hack until I can figure out why the right |operator+| is not found
// on some platforms