Bug 1499723 - make IdleRunnableWrapper final; r=farre
authorNathan Froyd <froydnj@mozilla.com>
Mon, 22 Oct 2018 09:44:50 -0400
changeset 490646 52ad8c18256e6d42be6512514c0867977527fedb
parent 490645 7b36a8c21a150097364be7d4642904bc2051e93c
child 490647 422dcc2a11caca11bc01cf3ca438c66e534afb6d
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewersfarre
bugs1499723
milestone64.0a1
Bug 1499723 - make IdleRunnableWrapper final; r=farre
xpcom/threads/nsThreadUtils.cpp
--- a/xpcom/threads/nsThreadUtils.cpp
+++ b/xpcom/threads/nsThreadUtils.cpp
@@ -331,17 +331,17 @@ NS_IdleDispatchToMainThread(already_AddR
   nsCOMPtr<nsIThread> mainThread;
   nsresult rv = NS_GetMainThread(getter_AddRefs(mainThread));
   if (NS_SUCCEEDED(rv)) {
     return NS_IdleDispatchToThread(std::move(aEvent), mainThread);
   }
   return rv;
 }
 
-class IdleRunnableWrapper : public IdleRunnable
+class IdleRunnableWrapper final : public IdleRunnable
 {
 public:
   explicit IdleRunnableWrapper(already_AddRefed<nsIRunnable>&& aEvent)
     : mRunnable(std::move(aEvent))
   {
   }
 
   NS_IMETHOD Run() override