diff options
author | Moonchild <moonchild@palemoon.org> | 2023-04-30 10:51:48 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2023-04-30 10:51:48 +0000 |
commit | 78156cd0ca7669321d17f2c0d5a111ec4e0e2f67 (patch) | |
tree | dd05bfaf09afd0ea9422c7498a8a44ff7ea27c48 /image | |
parent | 732e1bb7f7720250b096260b27ecc5707518ce74 (diff) | |
parent | e821844e249ef5534ea76a38c8e2fd40f9b35d3d (diff) | |
download | uxp-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.cpp | 6 |
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); } } |