Update of /cvsroot/mahogany/M/src/mail
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14005/src/mail

Modified Files:
        MailFolderCmn.cpp 
Log Message:
renamed scoped_ptr::set() to reset(); added scoped_array

Index: MailFolderCmn.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/mail/MailFolderCmn.cpp,v
retrieving revision 1.132
retrieving revision 1.133
diff -b -u -2 -r1.132 -r1.133
--- MailFolderCmn.cpp   8 Apr 2004 13:35:41 -0000       1.132
+++ MailFolderCmn.cpp   11 Jul 2004 12:55:44 -0000      1.133
@@ -732,5 +732,5 @@
    int n = selections->Count();
 
-   MProgressDialog *pd = NULL;
+   scoped_ptr<MProgressDialog> pd;
    long threshold = GetProgressThreshold(GetProfile());
 
@@ -741,5 +741,5 @@
                  n, fileName0.empty() ? fileName.c_str() : fileName0.c_str());
 
-      pd = new MProgressDialog(GetName(), msg, 2*n, NULL);
+      pd.reset(new MProgressDialog(GetName(), msg, 2*n, NULL));
    }
 
@@ -770,6 +770,4 @@
    }
 
-   delete pd;
-
    return rc;
 }
@@ -820,5 +818,6 @@
                  n, folder->GetName().c_str());
 
-      pd.set(new MProgressDialog(
+      pd.reset(new MProgressDialog
+                   (
                                mf->GetName(),   // title
                                msg,             // label message



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to