Bug 1372405 - Delete default Runnable ctor so name must be provided (r=froydnj)

MozReview-Commit-ID: 9L4UoBJWzQ3
This commit is contained in:
Bill McCloskey 2017-06-12 13:39:47 -07:00
Родитель 4592152411
Коммит b37fc62051
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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: