Bug 1291889 - specify CPP_THROW_NEW on definition of function whose declaration specifies it draft
authorMyk Melez <myk@mykzilla.org>
Wed, 03 Aug 2016 14:22:06 -0700
changeset 396478 6e2846066c8331eec039ad536947e0f3c95046f9
parent 392950 ceb63dec9267e9bb62f5e5e1f4c9d32d3ac1fbac
child 527212 ca8c8674cab79a8f42fa6ead2488f4e9acdc5dd7
push id25011
push userbmo:myk@mykzilla.org
push dateWed, 03 Aug 2016 21:23:14 +0000
bugs1291889
milestone50.0a1
Bug 1291889 - specify CPP_THROW_NEW on definition of function whose declaration specifies it MozReview-Commit-ID: 9a8hLbfJbkl
layout/base/nsDisplayList.cpp
--- a/layout/base/nsDisplayList.cpp
+++ b/layout/base/nsDisplayList.cpp
@@ -104,17 +104,17 @@ SpammyLayoutWarningsEnabled()
     sValueInitialized = true;
   }
 
   return sValue;
 }
 #endif
 
 void*
-AnimatedGeometryRoot::operator new(size_t aSize, nsDisplayListBuilder* aBuilder)
+AnimatedGeometryRoot::operator new(size_t aSize, nsDisplayListBuilder* aBuilder) CPP_THROW_NEW
 {
   return aBuilder->Allocate(aSize);
 }
 
 static inline CSSAngle
 MakeCSSAngle(const nsCSSValue& aValue)
 {
   return CSSAngle(aValue.GetAngleValue(), aValue.GetUnit());