mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-01 04:47:31 +09:00
Issue #2073 - Follow-up: Use internal Move instead of std::move for consistency
This commit is contained in:
parent
93644fd33e
commit
b7f217e5ad
1 changed files with 3 additions and 3 deletions
|
|
@ -1263,15 +1263,15 @@ SurfaceCache::MaximumCapacity()
|
||||||
void SurfaceCache::ReleaseImageOnMainThread(
|
void SurfaceCache::ReleaseImageOnMainThread(
|
||||||
already_AddRefed<image::Image> aImage, bool aAlwaysProxy) {
|
already_AddRefed<image::Image> aImage, bool aAlwaysProxy) {
|
||||||
if (NS_IsMainThread() && !aAlwaysProxy) {
|
if (NS_IsMainThread() && !aAlwaysProxy) {
|
||||||
RefPtr<image::Image> image = std::move(aImage);
|
RefPtr<image::Image> image = Move(aImage);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
StaticMutexAutoLock lock(sInstanceMutex);
|
StaticMutexAutoLock lock(sInstanceMutex);
|
||||||
if (sInstance) {
|
if (sInstance) {
|
||||||
sInstance->ReleaseImageOnMainThread(std::move(aImage), lock);
|
sInstance->ReleaseImageOnMainThread(Move(aImage), lock);
|
||||||
} else {
|
} else {
|
||||||
NS_ReleaseOnMainThread(std::move(aImage), /* aAlwaysProxy */ true);
|
NS_ReleaseOnMainThread(Move(aImage), /* aAlwaysProxy */ true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue