Bug 900277 - Use ALLOW_THIS_IN_INITIALIZER_LIST macro to suppress windows warning in Element.cpp's StringBuilder constructor. r=smaug
authorDaniel Holbert <dholbert@cs.stanford.edu>
Thu, 01 Aug 2013 13:00:56 -0400
changeset 153220 80b6d90df8311f54af3c8497de57366985236f63
parent 153219 dc057c38b2b52d8617eba8721ebd570cac083a85
child 153221 1788bbaa0f6adfd096aefe87ac92359ef43afa32
push id2859
push userakeybl@mozilla.com
push dateMon, 16 Sep 2013 19:14:59 +0000
treeherdermozilla-beta@87d3c51cd2bf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs900277
milestone25.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 900277 - Use ALLOW_THIS_IN_INITIALIZER_LIST macro to suppress windows warning in Element.cpp's StringBuilder constructor. r=smaug
content/base/src/Element.cpp
--- a/content/base/src/Element.cpp
+++ b/content/base/src/Element.cpp
@@ -2471,17 +2471,17 @@ private:
       const char*           mLiteral;
       nsAutoString*         mString;
       const nsTextFragment* mTextFragment;
     };
     Type     mType;
     uint32_t mLength;
   };
 public:
-  StringBuilder() : mLast(this), mLength(0)
+  StringBuilder() : mLast(MOZ_THIS_IN_INITIALIZER_LIST()), mLength(0)
   {
     MOZ_COUNT_CTOR(StringBuilder);
   }
 
   ~StringBuilder()
   {
     MOZ_COUNT_DTOR(StringBuilder);
   }