Bug 728171 - Use Scoped.h throughout the code. r=cjones

This commit is contained in:
David Rajchenbach-Teller
2012-04-12 12:21:24 +02:00
parent 5a0a5398cb
commit bad6935e93
11 changed files with 74 additions and 92 deletions

View File

@@ -558,9 +558,11 @@ PluginModuleParent::RecvBackUpXResources(const FileDescriptor& aXSocketFd)
#ifndef MOZ_X11
NS_RUNTIMEABORT("This message only makes sense on X11 platforms");
#else
NS_ABORT_IF_FALSE(0 > mPluginXSocketFdDup.mFd,
NS_ABORT_IF_FALSE(0 > mPluginXSocketFdDup.get(),
"Already backed up X resources??");
mPluginXSocketFdDup.mFd = aXSocketFd.fd;
int fd = aXSocketFd.fd; // Copy to discard |const| qualifier
mPluginXSocketFdDup.forget();
mPluginXSocketFdDup.reset(fd);
#endif
return true;
}