Bug 1061002 - Fix more bad implicit constructors in chrome; r=bsmedberg
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 02 Sep 2014 18:21:00 -0400
changeset 203126 41954931b34e1f113651e53154d315acd59e18c8
parent 203125 541e9d00496f8d90ba703408d75eb15e7f89da7a
child 203127 1d4cf18b141183102b5e5b9958def19a64d325a8
push id48571
push usereakhgari@mozilla.com
push dateTue, 02 Sep 2014 22:22:13 +0000
treeherdermozilla-inbound@1d4cf18b1411 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg
bugs1061002
milestone35.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1061002 - Fix more bad implicit constructors in chrome; r=bsmedberg
chrome/nsChromeRegistryChrome.h
--- a/chrome/nsChromeRegistryChrome.h
+++ b/chrome/nsChromeRegistryChrome.h
@@ -122,17 +122,17 @@ class nsChromeRegistryChrome : public ns
   };
 
   class OverlayListEntry : public nsURIHashKey
   {
    public:
     typedef nsURIHashKey::KeyType        KeyType;
     typedef nsURIHashKey::KeyTypePointer KeyTypePointer;
 
-    OverlayListEntry(KeyTypePointer aKey) : nsURIHashKey(aKey) { }
+    explicit OverlayListEntry(KeyTypePointer aKey) : nsURIHashKey(aKey) { }
     OverlayListEntry(OverlayListEntry&& toMove) : nsURIHashKey(mozilla::Move(toMove)),
                                                   mArray(mozilla::Move(toMove.mArray)) { }
     ~OverlayListEntry() { }
 
     void AddURI(nsIURI* aURI);
 
     nsCOMArray<nsIURI> mArray;
   };