Bug 1061251 - Fix more bad implicit constructors in accessible; r=tbsaunde
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 02 Sep 2014 12:19:32 -0400
changeset 203092 99663b08ee351dcc3e3f52ab77cfa2eb153d79a9
parent 203091 bab6f837fc6423dbf8af85f99feda1a9f879e9e5
child 203093 1116b6fce5f523ba4a02fb8a4381e6bcacef48a1
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewerstbsaunde
bugs1061251
milestone34.0a1
Bug 1061251 - Fix more bad implicit constructors in accessible; r=tbsaunde
accessible/atk/RootAccessibleWrap.h
accessible/atk/nsMaiHyperlink.h
--- a/accessible/atk/RootAccessibleWrap.h
+++ b/accessible/atk/RootAccessibleWrap.h
@@ -18,17 +18,17 @@ typedef RootAccessible RootAccessibleWra
 /* GtkWindowAccessible is the accessible class for gtk+ native window.
  * The instance of GtkWindowAccessible is a child of MaiAppRoot instance.
  * It is added into root when the toplevel window is created, and removed
  * from root when the toplevel window is destroyed.
  */
 class GtkWindowAccessible MOZ_FINAL : public DummyAccessible
 {
 public:
-  GtkWindowAccessible(AtkObject* aAccessible);
+  explicit GtkWindowAccessible(AtkObject* aAccessible);
   virtual ~GtkWindowAccessible();
 };
 
 } // namespace a11y
 } // namespace mozilla
 
 #endif   /* mozilla_a11y_Root_Accessible_Wrap_h__ */
 
--- a/accessible/atk/nsMaiHyperlink.h
+++ b/accessible/atk/nsMaiHyperlink.h
@@ -18,17 +18,17 @@ namespace a11y {
 
 /*
  * MaiHyperlink is a auxiliary class for MaiInterfaceHyperText.
  */
 
 class MaiHyperlink
 {
 public:
-  MaiHyperlink(Accessible* aHyperLink);
+  explicit MaiHyperlink(Accessible* aHyperLink);
   ~MaiHyperlink();
 
 public:
   AtkHyperlink *GetAtkHyperlink(void);
   Accessible* GetAccHyperlink()
     { return mHyperlink && mHyperlink->IsLink() ? mHyperlink : nullptr; }
 
 protected: