Bug 1188206 - Fix more constructors in gfx; r=jrmuizel
authorEhsan Akhgari <ehsan@mozilla.com>
Mon, 27 Jul 2015 21:14:42 -0400
changeset 286599 8688f6f8595073772e1f6f7c9c5a8cc93b0bf183
parent 286598 d5307982cc41e971236ea1bb6d056996ab2c9eca
child 286600 c0ccf9625fe3630eac2f49416359c0771e559b97
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel
bugs1188206
milestone42.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 1188206 - Fix more constructors in gfx; r=jrmuizel
gfx/2d/RecordedEvent.h
gfx/gl/HeapCopyOfStackArray.h
--- a/gfx/2d/RecordedEvent.h
+++ b/gfx/2d/RecordedEvent.h
@@ -31,17 +31,17 @@ struct ReferencePtr
     : mLongPtr(0)
   {}
 
   MOZ_IMPLICIT ReferencePtr(const void* aLongPtr)
     : mLongPtr(uint64_t(aLongPtr))
   {}
 
   template <typename T>
-  ReferencePtr(const RefPtr<T>& aPtr)
+  MOZ_IMPLICIT ReferencePtr(const RefPtr<T>& aPtr)
     : mLongPtr(uint64_t(aPtr.get()))
   {}
 
   ReferencePtr &operator =(const void* aLongPtr) {
     mLongPtr = uint64_t(aLongPtr);
     return *this;
   }
 
--- a/gfx/gl/HeapCopyOfStackArray.h
+++ b/gfx/gl/HeapCopyOfStackArray.h
@@ -18,17 +18,17 @@ namespace mozilla {
 // Useful to retain the convenience of declaring static arrays, while
 // avoiding passing stack pointers to the GL (see bug 1005658).
 
 template <typename ElemType>
 class HeapCopyOfStackArray
 {
 public:
   template<size_t N>
-  HeapCopyOfStackArray(ElemType (&array)[N])
+  MOZ_IMPLICIT HeapCopyOfStackArray(ElemType (&array)[N])
     : mArrayLength(N)
     , mArrayData(new ElemType[N])
   {
     memcpy(mArrayData, &array[0], N * sizeof(ElemType));
   }
 
   ElemType* Data() const { return mArrayData; }
   size_t ArrayLength() const { return mArrayLength; }
@@ -39,9 +39,9 @@ private:
   HeapCopyOfStackArray(const HeapCopyOfStackArray&) = delete;
 
   const size_t mArrayLength;
   ScopedDeletePtr<ElemType> const mArrayData;
 };
 
 } // namespace mozilla
 
-#endif // HEAPCOPYOFSTACKARRAY_H_
\ No newline at end of file
+#endif // HEAPCOPYOFSTACKARRAY_H_