summaryrefslogtreecommitdiff
path: root/image
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2023-04-30 10:51:48 +0000
committerMoonchild <moonchild@palemoon.org>2023-04-30 10:51:48 +0000
commit78156cd0ca7669321d17f2c0d5a111ec4e0e2f67 (patch)
treedd05bfaf09afd0ea9422c7498a8a44ff7ea27c48 /image
parent732e1bb7f7720250b096260b27ecc5707518ce74 (diff)
parente821844e249ef5534ea76a38c8e2fd40f9b35d3d (diff)
downloaduxp-78156cd0ca7669321d17f2c0d5a111ec4e0e2f67.tar.gz
Merge pull request 'Follow-up: Use internal Move instead of std::move for consistency in SurfaceCache' (#2220) from FranklinDM/UXP-contrib:work_image-followup-move into master
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2220
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 d9bf4614d3..17b06964b4 100644
--- a/image/SurfaceCache.cpp
+++ b/image/SurfaceCache.cpp
@@ -1263,15 +1263,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);
}
}