From 43b15fc417980b827397395790d7964b2f92ce58 Mon Sep 17 00:00:00 2001 From: Barret Rennie Date: Tue, 10 Nov 2020 01:59:45 +0000 Subject: [PATCH] Bug 1665172 - Use nsCOMPtr for nsI* interface pointers r=emalysz Differential Revision: https://phabricator.services.mozilla.com/D96145 --- dom/system/IOUtils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dom/system/IOUtils.cpp b/dom/system/IOUtils.cpp index 251dfc7ea54d..dc8ff9515b5f 100644 --- a/dom/system/IOUtils.cpp +++ b/dom/system/IOUtils.cpp @@ -168,7 +168,7 @@ static RefPtr InvokeToMozPromise(Fn aFunc, Args... aArgs) { template already_AddRefed IOUtils::RunOnBackgroundThread( RefPtr& aPromise, Fn aFunc, Args... aArgs) { - RefPtr bg = GetBackgroundEventTarget(); + nsCOMPtr bg = GetBackgroundEventTarget(); REJECT_IF_NULL_EVENT_TARGET(bg, aPromise); InvokeAsync( @@ -432,7 +432,7 @@ already_AddRefed IOUtils::GetBackgroundEventTarget() { auto lockedBackgroundEventTarget = sBackgroundEventTarget.Lock(); if (!lockedBackgroundEventTarget.ref()) { - RefPtr et; + nsCOMPtr et; MOZ_ALWAYS_SUCCEEDS(NS_CreateBackgroundTaskQueue( "IOUtils::BackgroundIOThread", getter_AddRefs(et))); MOZ_ASSERT(et); @@ -1175,7 +1175,7 @@ Result, IOUtils::IOError> IOUtils::GetChildrenSync( nsCOMPtr file = aFile; - RefPtr iter; + nsCOMPtr iter; nsresult rv = file->GetDirectoryEntries(getter_AddRefs(iter)); if (NS_FAILED(rv)) { IOError err(rv);