mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 339726 - getter_Copies (internal API) should work with nsString, r=darin
This commit is contained in:
parent
cace05daa3
commit
f51ee5d8fd
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user