Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa

This commit is contained in:
dbaron@fas.harvard.edu
2002-03-23 21:35:01 +00:00
parent 69193be516
commit 3edcb8e3e6
29 changed files with 82 additions and 80 deletions

View File

@@ -337,7 +337,7 @@ nsControllerCommandGroup::GetGroupsEnumerator(nsISimpleEnumerator **_retval)
/* nsISimpleEnumerator getEnumeratorForGroup (in DOMString aGroup); */
NS_IMETHODIMP
nsControllerCommandGroup::GetEnumeratorForGroup(const nsAReadableString & aGroup, nsISimpleEnumerator **_retval)
nsControllerCommandGroup::GetEnumeratorForGroup(const nsAString & aGroup, nsISimpleEnumerator **_retval)
{
nsStringKey groupKey(aGroup);
nsVoidArray* commandList = (nsVoidArray *)mGroupsHash.Get(&groupKey); // may be null

View File

@@ -73,7 +73,7 @@ public:
protected:
nsresult GetControllerForCommand(const nsAReadableString& aCommand, nsIController** outController);
nsresult GetControllerForCommand(const nsAString& aCommand, nsIController** outController);
protected:

View File

@@ -148,7 +148,7 @@ NS_IMETHODIMP nsCommandParams::GetDoubleValue(const nsAString & name, double *_r
}
/* AString getStringValue (in AString name); */
NS_IMETHODIMP nsCommandParams::GetStringValue(const nsAString & name, nsAWritableString & _retval)
NS_IMETHODIMP nsCommandParams::GetStringValue(const nsAString & name, nsAString & _retval)
{
_retval.Truncate();
HashEntry* foundEntry = GetNamedEntry(name);
@@ -403,7 +403,7 @@ nsCommandParams::First()
/* AString getNext (); */
NS_IMETHODIMP
nsCommandParams::GetNext(nsAWritableString & _retval)
nsCommandParams::GetNext(nsAString & _retval)
{
HashEntry* thisEntry = GetIndexedEntry(mCurEntry);
if (!thisEntry)

View File

@@ -82,7 +82,7 @@ protected:
nsString* mString;
nsCOMPtr<nsISupports> mISupports;
HashEntry(PRUint8 inType, const nsAReadableString& inEntryName)
HashEntry(PRUint8 inType, const nsAString& inEntryName)
: mEntryType(inType)
, mEntryName(inEntryName)
, mString(nsnull)
@@ -138,11 +138,11 @@ protected:
};
HashEntry* GetNamedEntry(const nsAReadableString& name);
HashEntry* GetNamedEntry(const nsAString& name);
HashEntry* GetIndexedEntry(PRInt32 index);
PRUint32 GetNumEntries();
nsresult GetOrMakeEntry(const nsAReadableString& name, PRUint8 entryType, HashEntry*& outEntry);
nsresult GetOrMakeEntry(const nsAString& name, PRUint8 entryType, HashEntry*& outEntry);
protected: