Bug 1048239 - Fix more bad implicit constructors in XPCOM; r=froydnj

This commit is contained in:
Ehsan Akhgari 2014-08-05 09:36:32 -04:00
parent c885140822
commit 4af9c14370
6 changed files with 10 additions and 10 deletions

View File

@ -356,7 +356,7 @@ nsresult nsSaveAsCharset::SetupCharsetList(const char *charsetList)
mCharsetListIndex = -1;
}
nsCWhitespaceTokenizer tokenizer = nsDependentCString(charsetList);
nsCWhitespaceTokenizer tokenizer((nsDependentCString(charsetList)));
while (tokenizer.hasMoreTokens()) {
ParseString(tokenizer.nextToken(), ',', mCharsetList);
}

View File

@ -319,7 +319,7 @@ class nsDumpGCAndCCLogsCallbackHolder MOZ_FINAL : public nsIDumpGCAndCCLogsCallb
public:
NS_DECL_ISUPPORTS
nsDumpGCAndCCLogsCallbackHolder(nsIDumpGCAndCCLogsCallback* aCallback)
explicit nsDumpGCAndCCLogsCallbackHolder(nsIDumpGCAndCCLogsCallback* aCallback)
: mCallback(aCallback)
{
}
@ -430,7 +430,7 @@ class DumpReportCallback MOZ_FINAL : public nsIHandleReportCallback
public:
NS_DECL_ISUPPORTS
DumpReportCallback(nsGZFileWriter* aWriter)
explicit DumpReportCallback(nsGZFileWriter* aWriter)
: mIsFirst(true)
, mWriter(aWriter)
{

View File

@ -1861,7 +1861,7 @@ namespace {
class MinimizeMemoryUsageRunnable : public nsRunnable
{
public:
MinimizeMemoryUsageRunnable(nsIRunnable* aCallback)
explicit MinimizeMemoryUsageRunnable(nsIRunnable* aCallback)
: mCallback(aCallback)
, mRemainingIters(sNumIters)
{

View File

@ -59,7 +59,7 @@ class MessageLoopTimerCallback
: public nsITimerCallback
{
public:
MessageLoopTimerCallback(MessageLoopIdleTask* aTask);
explicit MessageLoopTimerCallback(MessageLoopIdleTask* aTask);
NS_DECL_ISUPPORTS
NS_DECL_NSITIMERCALLBACK

View File

@ -83,7 +83,7 @@ public:
* period is zero, then we don't use a timer and rely on someone calling
* AgeOneGeneration explicitly.
*/
nsExpirationTracker(uint32_t aTimerPeriod)
explicit nsExpirationTracker(uint32_t aTimerPeriod)
: mTimerPeriod(aTimerPeriod)
, mNewestGeneration(0)
, mInAgeOneGeneration(false)
@ -238,7 +238,7 @@ public:
uint32_t mGeneration;
uint32_t mIndex;
public:
Iterator(nsExpirationTracker<T, K>* aTracker)
explicit Iterator(nsExpirationTracker<T, K>* aTracker)
: mTracker(aTracker)
, mGeneration(0)
, mIndex(0)

View File

@ -17,7 +17,7 @@ class nsTWhitespaceTokenizer
typedef typename DependentSubstringType::substring_type SubstringType;
public:
nsTWhitespaceTokenizer(const SubstringType& aSource)
explicit nsTWhitespaceTokenizer(const SubstringType& aSource)
: mIter(aSource.Data(), aSource.Length()),
mEnd(aSource.Data() + aSource.Length(), aSource.Data(),
aSource.Length()),
@ -85,7 +85,7 @@ class nsWhitespaceTokenizerTemplate
: public nsTWhitespaceTokenizer<nsDependentSubstring, IsWhitespace>
{
public:
nsWhitespaceTokenizerTemplate(const nsSubstring& aSource)
explicit nsWhitespaceTokenizerTemplate(const nsSubstring& aSource)
: nsTWhitespaceTokenizer<nsDependentSubstring, IsWhitespace>(aSource)
{
}
@ -98,7 +98,7 @@ class nsCWhitespaceTokenizerTemplate
: public nsTWhitespaceTokenizer<nsDependentCSubstring, IsWhitespace>
{
public:
nsCWhitespaceTokenizerTemplate(const nsCSubstring& aSource)
explicit nsCWhitespaceTokenizerTemplate(const nsCSubstring& aSource)
: nsTWhitespaceTokenizer<nsDependentCSubstring, IsWhitespace>(aSource)
{
}