Refactor VirtualMemoryArea::Fork to use auto&

This commit is contained in:
EnderIce2 2024-02-02 01:53:36 +02:00
parent de220bf879
commit 9538b8ef31
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -345,7 +345,7 @@ namespace Memory
Memory::Virtual vmm(this->Table);
SmartLock(MgrLock);
foreach (auto ap in Parent->GetAllocatedPagesList())
foreach (auto &ap in Parent->GetAllocatedPagesList())
{
MgrLock.Unlock();
void *Address = this->RequestPages(ap.PageCount);
@ -382,7 +382,7 @@ namespace Memory
}
}
foreach (auto sr in Parent->GetSharedRegions())
foreach (auto &sr in Parent->GetSharedRegions())
{
MgrLock.Unlock();
void *Address = this->CreateCoWRegion(sr.Address, sr.Length,