Bug 1434710 - Replaced typename IndexSequenceFor<Args...>::Type() with std::index_sequence_for<Args...> in accessible/base/NotificationController.h <>. r=botond draft
authorTom Bannister <tomabann@gmail.com>
Thu, 05 Apr 2018 15:44:18 +1000
changeset 778309 3b00b02c3a8dc43a0466dabe23602e29d087e8b8
parent 778308 c39fe4d95b522082e25baecf497bcd7fb7f50385
child 778310 8aa77385cfe3d1978882335608bb2d0b82e21247
push id105466
push userbmo:tomabann@gmail.com
push dateFri, 06 Apr 2018 06:41:20 +0000
reviewersbotond
bugs1434710
milestone61.0a1
Bug 1434710 - Replaced typename IndexSequenceFor<Args...>::Type() with std::index_sequence_for<Args...> in accessible/base/NotificationController.h <>. r=botond MozReview-Commit-ID: BnzZzRBGL8R
accessible/base/NotificationController.h
--- a/accessible/base/NotificationController.h
+++ b/accessible/base/NotificationController.h
@@ -62,17 +62,17 @@ class TNotification : public Notificatio
 public:
   typedef void (Class::*Callback)(Args* ...);
 
   TNotification(Class* aInstance, Callback aCallback, Args* ... aArgs) :
     mInstance(aInstance), mCallback(aCallback), mArgs(aArgs...) { }
   virtual ~TNotification() { mInstance = nullptr; }
 
   virtual void Process() override
-    { ProcessHelper(typename IndexSequenceFor<Args...>::Type()); }
+    { ProcessHelper(std::index_sequence_for<Args...>); }
 
 private:
   TNotification(const TNotification&);
   TNotification& operator = (const TNotification&);
 
   template <size_t... Indices>
     void ProcessHelper(std::index_sequence<Indices...>)
   {