Bug 1448016 - make some Android widget constructors explicit; r=snorp

Attempting to stand up the static analysis for Android builds revealed
that we weren't being explicit enough.
This commit is contained in:
Nathan Froyd
2018-03-27 10:51:32 -04:00
parent f2ba27ebae
commit c415bb3846
12 changed files with 32 additions and 32 deletions

View File

@@ -297,7 +297,7 @@ void DispatchToGeckoPriorityQueue(already_AddRefed<nsIRunnable> aCall)
{
nsCOMPtr<nsIRunnable> mCall;
public:
RunnableEvent(already_AddRefed<nsIRunnable> aCall) : mCall(aCall) {}
explicit RunnableEvent(already_AddRefed<nsIRunnable> aCall) : mCall(aCall) {}
void Run() override { NS_ENSURE_SUCCESS_VOID(mCall->Run()); }
};