Update of /cvsroot/mahogany/M/src/modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27862/src/modules
Modified Files:
NetscapeImporter.cpp
Log Message:
warning fixes; fixed handling of mail.deliver_immediately
Index: NetscapeImporter.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/modules/NetscapeImporter.cpp,v
retrieving revision 1.18
retrieving revision 1.19
diff -b -u -2 -r1.18 -r1.19
--- NetscapeImporter.cpp 12 Jan 2004 15:20:38 -0000 1.18
+++ NetscapeImporter.cpp 11 Mar 2004 11:25:54 -0000 1.19
@@ -532,9 +532,7 @@
// should delete the strings hier;
m_tbl.BeginFind();
- wxString *tmp = NULL;
wxNode* node = NULL;
while ( (node = m_tbl.Next()) != NULL )
- if ((tmp = (wxString*)node->GetData()))
- delete tmp;
+ delete (wxString*)node->GetData();
// m_tbl.DeleteContents(FALSE); // just ot make sure, they are deleted
@@ -1255,5 +1253,5 @@
// if Not deliver immediately, then create an Outbox to be used
if ( tbl.GetValue(_T("mail.deliver_immediately"), tmpBool) && ! tmpBool )
- WriteProfileEntry(MP_OUTBOX_NAME, _T("Outbox"), _T("Outgoing mail folder"));
+ WriteProfileEntry(MP_OUTBOX_NAME, String(_T("Outbox")), _T("Outgoing mail
folder"));
return TRUE;
@@ -1386,5 +1384,5 @@
Profile* l_Profile = mApplication->GetProfile();
- if ( status = l_Profile->writeEntry( key, tmpVal) )
+ if ( (status = l_Profile->writeEntry( key, tmpVal)) == true )
wxLogMessage(_("Imported '%s' setting from %s: %s."),
desc.c_str(),"Netscape",tmpVal.c_str());
@@ -1401,5 +1399,5 @@
Profile* l_Profile = mApplication->GetProfile();
- if ( status = l_Profile->writeEntry( key, val) )
+ if ( (status = l_Profile->writeEntry(key, val)) == true )
wxLogMessage(_("Imported '%s' setting from %s: %u."),
desc.c_str(),"Netscape",val);
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates