mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
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:
parent
cce30331e3
commit
10ea845c91
@ -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:
|
||||
|
@ -258,7 +258,7 @@ private:
|
||||
class NativeFileWatcherIOTask : public Runnable
|
||||
{
|
||||
public:
|
||||
NativeFileWatcherIOTask(HANDLE aIOCompletionPort)
|
||||
explicit NativeFileWatcherIOTask(HANDLE aIOCompletionPort)
|
||||
: mIOCompletionPort(aIOCompletionPort)
|
||||
, mShuttingDown(false)
|
||||
{
|
||||
|
@ -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
|
||||
|
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user