summaryrefslogtreecommitdiff
path: root/image
diff options
context:
space:
mode:
authorFranklinDM <mrmineshafter17@gmail.com>2023-04-30 17:19:39 +0800
committerFranklinDM <mrmineshafter17@gmail.com>2023-04-30 18:21:06 +0800
commite821844e249ef5534ea76a38c8e2fd40f9b35d3d (patch)
treea1f62305a0925b20772717ae75f8c17db56395ea /image
parent1978ebd3b86bbcf0794e69225151de64818a0294 (diff)
downloaduxp-e821844e249ef5534ea76a38c8e2fd40f9b35d3d.tar.gz
Issue #2073 - Follow-up: Use internal Move instead of std::move for consistency
Diffstat (limited to 'image')
-rw-r--r--image/SurfaceCache.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/image/SurfaceCache.cpp b/image/SurfaceCache.cpp
index 856ba162dc..a244281a6f 100644
--- a/image/SurfaceCache.cpp
+++ b/image/SurfaceCache.cpp
@@ -1191,15 +1191,15 @@ SurfaceCache::MaximumCapacity()
void SurfaceCache::ReleaseImageOnMainThread(
already_AddRefed<image::Image> aImage, bool aAlwaysProxy) {
if (NS_IsMainThread() && !aAlwaysProxy) {
- RefPtr<image::Image> image = std::move(aImage);
+ RefPtr<image::Image> 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);
}
}