Bug 1322465 part 11 - Use explicit/MOZ_IMPLICIT for the unary constructors in toolkit/. r=Ehsan

MozReview-Commit-ID: 7zdrF739NCL

--HG--
extra : rebase_source : 32d68c15e32c7d1046928d6782b6853cd56edd9a
This commit is contained in:
Ting-Yu Chou 2016-12-16 15:59:00 +08:00
parent cce30331e3
commit 10ea845c91
4 changed files with 5 additions and 5 deletions

View File

@ -291,7 +291,7 @@ nsDownloadScanner::ScannerThreadFunction(void *p)
// the main thread too
class ReleaseDispatcher : public mozilla::Runnable {
public:
ReleaseDispatcher(nsISupports *ptr)
explicit ReleaseDispatcher(nsISupports *ptr)
: mPtr(ptr) {}
NS_IMETHOD Run();
private:

View File

@ -258,7 +258,7 @@ private:
class NativeFileWatcherIOTask : public Runnable
{
public:
NativeFileWatcherIOTask(HANDLE aIOCompletionPort)
explicit NativeFileWatcherIOTask(HANDLE aIOCompletionPort)
: mIOCompletionPort(aIOCompletionPort)
, mShuttingDown(false)
{

View File

@ -14,7 +14,7 @@ namespace mozilla {
class InjectCrashRunnable : public Runnable
{
public:
InjectCrashRunnable(DWORD pid);
explicit InjectCrashRunnable(DWORD pid);
NS_IMETHOD Run();
@ -22,7 +22,7 @@ private:
DWORD mPID;
nsString mInjectorPath;
};
} // Namespace mozilla
#endif

View File

@ -95,7 +95,7 @@ activateWindow( mozIDOMWindowProxy *win ) {
// Simple Win32 mutex wrapper.
struct Win32Mutex {
Win32Mutex( const char16_t *name )
explicit Win32Mutex( const char16_t *name )
: mName( name ),
mHandle( 0 ),
mState( -1 ) {