Bug 1071575 - Fix more bad implicit constructors in MFBT; r=froydnj
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 23 Sep 2014 21:30:36 -0400
changeset 207023 c19a015ac2f14be47c6e5b60e6bcec714f127d70
parent 207022 5a157a5cf9bc745d13905ee1eb7f8c168e6d320f
child 207024 a7c3eb6b1639688bcd14c4f397875f7f5774c1ea
push id27544
push userryanvm@gmail.com
push dateWed, 24 Sep 2014 21:10:36 +0000
treeherdermozilla-central@1735ff2bb23e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1071575
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 1071575 - Fix more bad implicit constructors in MFBT; r=froydnj
mfbt/JSONWriter.h
--- a/mfbt/JSONWriter.h
+++ b/mfbt/JSONWriter.h
@@ -140,17 +140,17 @@ class JSONWriter
 
     static char hexDigitToAsciiChar(uint8_t u)
     {
       u = u & 0xf;
       return u < 10 ? '0' + u : 'a' + (u - 10);
     }
 
   public:
-    EscapedString(const char* aStr)
+    explicit EscapedString(const char* aStr)
       : mUnownedStr(nullptr)
       , mOwnedStr(nullptr)
     {
       const char* p;
 
       // First, see if we need to modify the string.
       size_t nExtra = 0;
       p = aStr;