mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Must QI objects returned via nsISupports parameter type. Not part of the default build.
This commit is contained in:
parent
726f74bf63
commit
59343d34ec
@ -180,9 +180,12 @@ NS_IMETHODIMP nsCharsetConverterManager::GetUnicodeEncoder(
|
||||
|
||||
#ifdef MOZ_USE_NATIVE_UCONV
|
||||
if (mNativeUC) {
|
||||
nsCOMPtr<nsISupports> supports;
|
||||
mNativeUC->GetNativeConverter("UCS-2",
|
||||
NS_LossyConvertUCS2toASCII(*aDest).get(),
|
||||
getter_AddRefs(encoder));
|
||||
getter_AddRefs(supports));
|
||||
|
||||
encoder = do_QueryInterface(supports);
|
||||
|
||||
if (encoder) {
|
||||
NS_ADDREF(*aResult = encoder);
|
||||
@ -218,9 +221,12 @@ NS_IMETHODIMP nsCharsetConverterManager::GetUnicodeDecoder(
|
||||
|
||||
#ifdef MOZ_USE_NATIVE_UCONV
|
||||
if (mNativeUC) {
|
||||
nsCOMPtr<nsISupports> supports;
|
||||
mNativeUC->GetNativeConverter(NS_LossyConvertUCS2toASCII(*aSrc).get(),
|
||||
"UCS-2",
|
||||
getter_AddRefs(decoder));
|
||||
getter_AddRefs(supports));
|
||||
|
||||
decoder = do_QueryInterface(supports);
|
||||
|
||||
if (decoder) {
|
||||
NS_ADDREF(*aResult = decoder);
|
||||
|
Loading…
Reference in New Issue
Block a user