Bug 1079328 - Fix some more bad implicit constructors in parser; r=hsivonen
authorEhsan Akhgari <ehsan@mozilla.com>
Wed, 24 Sep 2014 09:16:53 -0400
changeset 209970 99531e7a02af22d0bcbf950762ba577fc1b6b711
parent 209969 c6af18bbbafa95040e66f4e81297a4237800f3ee
child 209971 3a89e23a25f07bf29ad5da35dcb04edc772d481b
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewershsivonen
bugs1079328
milestone35.0a1
Bug 1079328 - Fix some more bad implicit constructors in parser; r=hsivonen
parser/htmlparser/nsParser.cpp
--- a/parser/htmlparser/nsParser.cpp
+++ b/parser/htmlparser/nsParser.cpp
@@ -638,17 +638,17 @@ VerifyPublicIDs()
 }
 #endif
 
 namespace {
 
 struct PublicIdComparator
 {
   const nsAutoCString& mPublicId;
-  PublicIdComparator(const nsAutoCString& aPublicId)
+  explicit PublicIdComparator(const nsAutoCString& aPublicId)
     : mPublicId(aPublicId) {}
   int operator()(const PubIDInfo& aInfo) const {
     return nsCRT::strcmp(mPublicId.get(), aInfo.name);
   }
 };
 
 } // namespace