mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 1061253 - Fix more bad implicit constructors in widget; r=roc
This commit is contained in:
parent
a725e9f55f
commit
71ce70204a
@ -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.
|
||||
|
@ -157,7 +157,7 @@ protected:
|
||||
guint mHardwareKeycode;
|
||||
guint mMask;
|
||||
|
||||
ModifierKey(guint aHardwareKeycode) :
|
||||
explicit ModifierKey(guint aHardwareKeycode) :
|
||||
mHardwareKeycode(aHardwareKeycode), mMask(0)
|
||||
{
|
||||
}
|
||||
|
@ -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) {
|
||||
|
@ -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(®ion);
|
||||
|
Loading…
Reference in New Issue
Block a user