mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-04-02 12:32:55 +00:00
bug 229705: make CStringArray:CStringAt accept nsACString& as out param. (r=alecf, sr=bz)
This commit is contained in:
parent
1c2a40ffa9
commit
0f9983b873
@ -953,7 +953,7 @@ nsCStringArray::operator=(const nsCStringArray& other)
|
||||
}
|
||||
|
||||
void
|
||||
nsCStringArray::CStringAt(PRInt32 aIndex, nsCString& aCString) const
|
||||
nsCStringArray::CStringAt(PRInt32 aIndex, nsACString& aCString) const
|
||||
{
|
||||
nsCString* string = NS_STATIC_CAST(nsCString*, nsVoidArray::ElementAt(aIndex));
|
||||
if (nsnull != string)
|
||||
|
@ -271,7 +271,7 @@ public:
|
||||
return nsVoidArray::Count();
|
||||
}
|
||||
|
||||
void CStringAt(PRInt32 aIndex, nsCString& aCString) const;
|
||||
void CStringAt(PRInt32 aIndex, nsACString& aCString) const;
|
||||
nsCString* CStringAt(PRInt32 aIndex) const;
|
||||
nsCString* operator[](PRInt32 aIndex) const { return CStringAt(aIndex); }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user