mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 1048239 - Fix more bad implicit constructors in XPCOM; r=froydnj
This commit is contained in:
parent
c885140822
commit
4af9c14370
@ -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);
|
||||
}
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -1861,7 +1861,7 @@ namespace {
|
||||
class MinimizeMemoryUsageRunnable : public nsRunnable
|
||||
{
|
||||
public:
|
||||
MinimizeMemoryUsageRunnable(nsIRunnable* aCallback)
|
||||
explicit MinimizeMemoryUsageRunnable(nsIRunnable* aCallback)
|
||||
: mCallback(aCallback)
|
||||
, mRemainingIters(sNumIters)
|
||||
{
|
||||
|
@ -59,7 +59,7 @@ class MessageLoopTimerCallback
|
||||
: public nsITimerCallback
|
||||
{
|
||||
public:
|
||||
MessageLoopTimerCallback(MessageLoopIdleTask* aTask);
|
||||
explicit MessageLoopTimerCallback(MessageLoopIdleTask* aTask);
|
||||
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_NSITIMERCALLBACK
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user