Bug 1061253 - Fix more bad implicit constructors in widget; r=roc

This commit is contained in:
Ehsan Akhgari 2014-09-02 09:46:06 -04:00
parent a725e9f55f
commit 71ce70204a
4 changed files with 4 additions and 4 deletions

View File

@ -54,7 +54,7 @@ public:
// aOwnerWindow is a pointer of the owner window. When aOwnerWindow is
// destroyed, the related IME contexts are released (i.e., IME cannot be
// used with the instance after that).
nsGtkIMModule(nsWindow* aOwnerWindow);
explicit nsGtkIMModule(nsWindow* aOwnerWindow);
~nsGtkIMModule();
// "Enabled" means the users can use all IMEs.

View File

@ -157,7 +157,7 @@ protected:
guint mHardwareKeycode;
guint mMask;
ModifierKey(guint aHardwareKeycode) :
explicit ModifierKey(guint aHardwareKeycode) :
mHardwareKeycode(aHardwareKeycode), mMask(0)
{
}

View File

@ -69,7 +69,7 @@ static ca_proplist_sets_fn ca_proplist_sets;
static ca_context_play_full_fn ca_context_play_full;
struct ScopedCanberraFile {
ScopedCanberraFile(nsIFile *file): mFile(file) {};
explicit ScopedCanberraFile(nsIFile *file): mFile(file) {};
~ScopedCanberraFile() {
if (mFile) {

View File

@ -294,7 +294,7 @@ protected:
typedef pixman_region32 RawRef;
nsSimpleRef() { data = nullptr; }
nsSimpleRef(const RawRef &aRawRef) : pixman_region32(aRawRef) { }
explicit nsSimpleRef(const RawRef &aRawRef) : pixman_region32(aRawRef) { }
static void Release(pixman_region32& region) {
pixman_region32_fini(&region);