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 id27632
push userryanvm@gmail.com
push dateSat, 11 Oct 2014 20:21:25 +0000
treeherdermozilla-central@44168a7af20d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershsivonen
bugs1079328
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 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