mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 20:49:27 +00:00
use reset() with auto_ptr for gcc. r=saari/sr=hyatt. bug# 75653
This commit is contained in:
parent
3d6fcc5c9e
commit
f922815569
@ -81,10 +81,10 @@ NS_IMETHODIMP nsAppShell::Create(int* argc, char ** argv)
|
||||
rv = NS_GetCurrentToolkit(getter_AddRefs(mToolkit));
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
mMacSink = auto_ptr<nsMacMessageSink>( new nsMacMessageSink() );
|
||||
mMacSink.reset(new nsMacMessageSink());
|
||||
nsIToolkit* toolkit = mToolkit.get();
|
||||
mMacPump = auto_ptr<nsMacMessagePump>( new nsMacMessagePump(static_cast<nsToolkit*>(toolkit), mMacSink.get()) );
|
||||
mMacMemoryCushion = auto_ptr<nsMacMemoryCushion>( new nsMacMemoryCushion() );
|
||||
mMacPump.reset(new nsMacMessagePump(static_cast<nsToolkit*>(toolkit), mMacSink.get()));
|
||||
mMacMemoryCushion.reset(new nsMacMemoryCushion());
|
||||
|
||||
if (!mMacSink.get() || !mMacPump.get() || !mMacMemoryCushion.get())
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
Loading…
x
Reference in New Issue
Block a user