mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 12:51:06 +00:00
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:
parent
45e0eceb51
commit
76bf8d142b
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user