зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1266954: Remove temporary |ScopedClose| from PDU receive code, r=jacheng
|ScopedClose| doesn't support temporary objects. This patch removes it.
This commit is contained in:
Родитель
4c4ddfb8df
Коммит
6f916378f6
|
@ -150,7 +150,7 @@ DaemonSocketPDU::Receive(int aFd)
|
|||
size_t fdCount = (chdr->cmsg_len - CMSG_ALIGN(sizeof(struct cmsghdr))) / sizeof(int);
|
||||
for (size_t i = 0; i < fdCount; i++) {
|
||||
int* receivedFd = static_cast<int*>(CMSG_DATA(chdr)) + i;
|
||||
mReceivedFds.AppendElement(ScopedClose(*receivedFd));
|
||||
mReceivedFds.AppendElement(*receivedFd);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче