No bug: Make constructor explicit. rs=Waldo
authorBenjamin Peterson <benjamin@python.org>
Tue, 23 Oct 2012 15:37:58 -0700
changeset 111334 650a1ac5cf817c1de169928cc4284e88888da0bb
parent 111333 a69ec59e6d61afbb030b28026a876388f81614cc
child 111335 efb52cbc71e56febfa2c99cba623799b3d8463ed
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewersWaldo
milestone19.0a1
No bug: Make constructor explicit. rs=Waldo
js/src/jsscript.h
--- a/js/src/jsscript.h
+++ b/js/src/jsscript.h
@@ -1140,17 +1140,17 @@ struct SourceCompressionToken
 {
     friend struct ScriptSource;
     friend class SourceCompressorThread;
   private:
     JSContext *cx;
     ScriptSource *ss;
     const jschar *chars;
   public:
-    SourceCompressionToken(JSContext *cx)
+    explicit SourceCompressionToken(JSContext *cx)
       : cx(cx), ss(NULL), chars(NULL) {}
     ~SourceCompressionToken()
     {
         JS_ASSERT_IF(!ss, !chars);
         if (ss)
             ensureReady();
     }