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:
Thomas Zimmermann 2016-04-28 10:57:19 +02:00
Родитель 4c4ddfb8df
Коммит 6f916378f6
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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);
}
}