Skip to content

Commit 9403734

Browse files
committed
Bug 1225682 - Don't use nsAuto{,C}String as class member variables in toolkit/. r=froydnj
1 parent b2e31e6 commit 9403734

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

toolkit/components/downloads/nsDownloadManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ class nsDownload final : public nsIDownload
433433
/**
434434
* Stores the SHA-256 hash associated with the downloaded file.
435435
*/
436-
nsAutoCString mHash;
436+
nsCString mHash;
437437

438438
/**
439439
* Stores the certificate chains in an nsIArray of nsIX509CertList of

toolkit/components/filepicker/nsFileView.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class nsFileResult final : public nsIAutoCompleteResult
4545
NS_DECL_NSIAUTOCOMPLETERESULT
4646

4747
nsTArray<nsString> mValues;
48-
nsAutoString mSearchString;
48+
nsString mSearchString;
4949
uint16_t mSearchResult;
5050
private:
5151
~nsFileResult() {}

toolkit/components/telemetry/ThreadHangStats.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ class HangHistogram : public TimeHistogram
171171
class ThreadHangStats
172172
{
173173
private:
174-
nsAutoCString mName;
174+
nsCString mName;
175175

176176
public:
177177
TimeHistogram mActivity;

toolkit/components/url-classifier/nsCheckSummedOutputStream.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class nsCheckSummedOutputStream : public nsSafeFileOutputStream
3333
virtual ~nsCheckSummedOutputStream() { nsSafeFileOutputStream::Close(); }
3434

3535
nsCOMPtr<nsICryptoHash> mHash;
36-
nsAutoCString mCheckSum;
36+
nsCString mCheckSum;
3737
};
3838

3939
// returns a file output stream which can be QI'ed to nsIFileOutputStream.

toolkit/xre/ProfileReset.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,5 @@ class ProfileResetCleanupAsyncTask : public nsRunnable
7777
nsCOMPtr<nsIFile> mProfileDir;
7878
nsCOMPtr<nsIFile> mProfileLocalDir;
7979
nsCOMPtr<nsIFile> mTargetDir;
80-
nsAutoString mLeafName;
80+
nsString mLeafName;
8181
};

toolkit/xre/nsUpdateDriver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class nsUpdateProcessor final : public nsIUpdateProcessor
8989
nsCOMPtr<nsIFile> mOSApplyToDir;
9090
int mArgc;
9191
char **mArgv;
92-
nsAutoCString mAppVersion;
92+
nsCString mAppVersion;
9393
bool mIsOSUpdate;
9494
};
9595

0 commit comments

Comments
 (0)