diff --git a/xpcom/tests/gtest/TestEventPriorities.cpp b/xpcom/tests/gtest/TestEventPriorities.cpp index ff400bcc28f8..bd28fc774264 100644 --- a/xpcom/tests/gtest/TestEventPriorities.cpp +++ b/xpcom/tests/gtest/TestEventPriorities.cpp @@ -16,7 +16,7 @@ using mozilla::Runnable; class TestEvent final : public Runnable, nsIRunnablePriority { public: - explicit TestEvent(int* aCounter, std::function aCheck, uint32_t aPriority = nsIRunnablePriority::PRIORITY_NORMAL) + explicit TestEvent(int* aCounter, std::function&& aCheck, uint32_t aPriority = nsIRunnablePriority::PRIORITY_NORMAL) : Runnable("TestEvent") , mCounter(aCounter) , mCheck(Move(aCheck))