From b7f217e5adb0caf88377c696b39ac754005ecc2f Mon Sep 17 00:00:00 2001 From: FranklinDM Date: Sun, 30 Apr 2023 17:19:39 +0800 Subject: [PATCH] Issue #2073 - Follow-up: Use internal Move instead of std::move for consistency --- image/SurfaceCache.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/image/SurfaceCache.cpp b/image/SurfaceCache.cpp index d9bf4614d3..17b06964b4 100644 --- a/image/SurfaceCache.cpp +++ b/image/SurfaceCache.cpp @@ -1263,15 +1263,15 @@ SurfaceCache::MaximumCapacity() void SurfaceCache::ReleaseImageOnMainThread( already_AddRefed aImage, bool aAlwaysProxy) { if (NS_IsMainThread() && !aAlwaysProxy) { - RefPtr image = std::move(aImage); + RefPtr image = Move(aImage); return; } StaticMutexAutoLock lock(sInstanceMutex); if (sInstance) { - sInstance->ReleaseImageOnMainThread(std::move(aImage), lock); + sInstance->ReleaseImageOnMainThread(Move(aImage), lock); } else { - NS_ReleaseOnMainThread(std::move(aImage), /* aAlwaysProxy */ true); + NS_ReleaseOnMainThread(Move(aImage), /* aAlwaysProxy */ true); } }