From b37fc62051fab5a805e12f1285bd2cf92053d2fb Mon Sep 17 00:00:00 2001 From: Bill McCloskey Date: Mon, 12 Jun 2017 13:39:47 -0700 Subject: [PATCH] Bug 1372405 - Delete default Runnable ctor so name must be provided (r=froydnj) MozReview-Commit-ID: 9L4UoBJWzQ3 --- xpcom/threads/nsThreadUtils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xpcom/threads/nsThreadUtils.h b/xpcom/threads/nsThreadUtils.h index 7d2cb37090ca..63e5a5298761 100644 --- a/xpcom/threads/nsThreadUtils.h +++ b/xpcom/threads/nsThreadUtils.h @@ -382,7 +382,7 @@ public: NS_DECL_NSIRUNNABLE NS_DECL_NSINAMED - Runnable() {} + Runnable() = delete; #ifdef RELEASE_OR_BETA explicit Runnable(const char* aName) {} @@ -412,7 +412,7 @@ public: // nsICancelableRunnable virtual nsresult Cancel() override; - CancelableRunnable() {} + CancelableRunnable() = delete; explicit CancelableRunnable(const char* aName) : Runnable(aName) {} protected: