Bug 339726 - getter_Copies (internal API) should work with nsString, r=darin

This commit is contained in:
benjamin%smedbergs.us 2006-05-31 14:28:14 +00:00
parent cace05daa3
commit f51ee5d8fd

View File

@ -636,7 +636,7 @@ class nsTGetterCopies_CharT
public:
typedef CharT char_type;
nsTGetterCopies_CharT(nsTXPIDLString_CharT& str)
nsTGetterCopies_CharT(nsTSubstring_CharT& str)
: mString(str), mData(nsnull) {}
~nsTGetterCopies_CharT()
@ -650,13 +650,13 @@ class nsTGetterCopies_CharT
}
private:
nsTXPIDLString_CharT& mString;
nsTSubstring_CharT& mString;
char_type* mData;
};
inline
nsTGetterCopies_CharT
getter_Copies( nsTXPIDLString_CharT& aString )
getter_Copies( nsTSubstring_CharT& aString )
{
return nsTGetterCopies_CharT(aString);
}