use the no-arg constructor draft
authorVincent Lequertier <vi.le@autistici.org>
Mon, 23 Jan 2017 20:50:01 +0100
changeset 465087 4e8f2fb8b40a56a593b636ac720adec71f8b967f
parent 463238 6230da041c6edab2d9665625f7242df220916aca
child 543098 fea99ff30325240e29a56464bcd1a79ae0038d53
push id42543
push userbmo:vi.le@autistici.org
push dateMon, 23 Jan 2017 19:51:19 +0000
milestone53.0a1
use the no-arg constructor MozReview-Commit-ID: LFMGW1i2ZK6
xpcom/string/nsTString.h
--- a/xpcom/string/nsTString.h
+++ b/xpcom/string/nsTString.h
@@ -851,17 +851,17 @@ public:
     Adopt(aStr, aLength);
   }
 
   // copy-constructor required to adopt on copy. Note that this
   // will violate the constness of |aStr| in the operator=()
   // call. |aStr| will be truncated as a side-effect of this
   // constructor.
   nsTAdoptingString_CharT(const self_type& aStr)
-    : nsTXPIDLString_CharT(aStr)
+    : nsTXPIDLString_CharT()
   {
     *this = aStr;
   }
 
   // |operator=| does not inherit, so we must define our own
   self_type& operator=(const substring_type& aStr)
   {
     Assign(aStr);