Skip to content
Snippets Groups Projects
Commit c9a88d32 authored by Florian Quèze's avatar Florian Quèze
Browse files

Bug 1729689 - Do not require nsITimerCallback implementations to implement...

Bug 1729689 - Do not require nsITimerCallback implementations to implement nsINamed on release or beta, as runnables don't have names there, r=smaug.

Differential Revision: https://phabricator.services.mozilla.com/D124910
parent 27dcb310
No related branches found
No related tags found
No related merge requests found
......@@ -320,6 +320,7 @@ NS_NewTimerWithFuncCallback(nsTimerCallbackFunc aCallback,
#define NS_TIMER_CONTRACTID "@mozilla.org/timer;1"
#define NS_TIMER_CALLBACK_TOPIC "timer-callback"
#ifndef RELEASE_OR_BETA
#undef NS_DECL_NSITIMERCALLBACK
#define NS_DECL_NSITIMERCALLBACK \
NS_IMETHOD Notify(nsITimer *timer) override; \
......@@ -327,4 +328,5 @@ NS_NewTimerWithFuncCallback(nsTimerCallbackFunc aCallback,
static_assert(std::is_convertible<decltype(this), nsINamed*>::value, \
"nsITimerCallback implementations must also implement nsINamed"); \
}
#endif
%}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment