Bug 1903440: Use MakeUnique instead of 'new' to initialize UniquePtr in RemotePrintJobParent. r=TYLin

Differential Revision: https://phabricator.services.mozilla.com/D214184
This commit is contained in:
Daniel Holbert 2024-06-19 00:07:31 +00:00
parent 45e0eceb51
commit 76bf8d142b

View File

@ -46,7 +46,7 @@ mozilla::ipc::IPCResult RemotePrintJobParent::RecvInitializePrint(
return IPC_OK();
}
mPrintTranslator.reset(new PrintTranslator(mPrintDeviceContext));
mPrintTranslator = MakeUnique<PrintTranslator>(mPrintDeviceContext);
FileDescriptor fd;
rv = PrepareNextPageFD(&fd);
if (NS_FAILED(rv)) {