From 71f84b05bc3206776e8affa02460cc53ca3be2bf Mon Sep 17 00:00:00 2001 From: "pinkerton%netscape.com" Date: Tue, 17 Apr 2001 03:19:32 +0000 Subject: [PATCH] switch to using reset() to set auto_ptr's. not sure why we did it the other way. r=saari/sr=hyatt. bug# 75653 git-svn-id: svn://10.0.0.236/trunk@92501 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/widget/src/mac/nsMacWindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mozilla/widget/src/mac/nsMacWindow.cpp b/mozilla/widget/src/mac/nsMacWindow.cpp index 51346dcfcb3..1eb5d5c5a93 100644 --- a/mozilla/widget/src/mac/nsMacWindow.cpp +++ b/mozilla/widget/src/mac/nsMacWindow.cpp @@ -281,8 +281,7 @@ nsMacWindow::nsMacWindow() : Inherited() , mPhantomScrollbar(nsnull) , mPhantomScrollbarData(nsnull) { - //mMacEventHandler.reset(new nsMacEventHandler(this)); - mMacEventHandler = (auto_ptr) new nsMacEventHandler(this); + mMacEventHandler.reset(new nsMacEventHandler(this)); WIDGET_SET_CLASSNAME("nsMacWindow"); // create handlers for drag&drop