Update of /cvsroot/mahogany/M/src/gui
In directory sc8-pr-cvs1:/tmp/cvs-serv6036/src/gui

Modified Files:
        wxSpamOptions.cpp 
Log Message:
Template smart pointer

Index: wxSpamOptions.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxSpamOptions.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -b -u -2 -r1.7 -r1.8
--- wxSpamOptions.cpp   2 Oct 2003 09:49:38 -0000       1.7
+++ wxSpamOptions.cpp   3 Oct 2003 12:51:00 -0000       1.8
@@ -39,5 +39,7 @@
 #include "gui/wxSpamOptions.h"
 #include "gui/wxOptionsDlg.h"
+#include "pointers.h"
 
+DECLARE_REF_COUNTER(Profile)
 
 class SpamOption
@@ -456,5 +458,6 @@
    // we use the global app profile to pass the settings to/from the options
    // page because like this we can reuse the options page classes easily
-   Profile *profile = mApplication->GetProfile();
+   RefCounter<Profile> profile;
+   profile.AttachAndIncRef(mApplication->GetProfile());
 
    // transfer data to dialog



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to