Update of /cvsroot/mahogany/M/src/mail
In directory usw-pr-cvs1:/tmp/cvs-serv4079/src/mail
Modified Files:
MFCache.cpp
Log Message:
allow passing NULL pointer to GetStatus() to just check if we have it cached or not
Index: MFCache.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/mail/MFCache.cpp,v
retrieving revision 1.19
retrieving revision 1.20
diff -b -u -2 -r1.19 -r1.20
--- MFCache.cpp 19 Nov 2001 13:53:42 -0000 1.19
+++ MFCache.cpp 4 Jul 2002 13:49:58 -0000 1.20
@@ -144,6 +144,4 @@
MailFolderStatus *status)
{
- CHECK( status, false, "NULL pointer in MfStatusCache::GetStatus" );
-
int n = m_folderNames.Index(folderName);
if ( n == wxNOT_FOUND || !m_folderData[(size_t)n]->IsValid() )
@@ -153,5 +151,8 @@
}
+ if ( status )
+ {
*status = *m_folderData[(size_t)n];
+ }
return true;
@@ -166,6 +167,7 @@
if ( n == wxNOT_FOUND )
{
- wxLogTrace(M_TRACE_MFSTATUS, "Added status for '%s' (%lu msgs)",
- folderName.c_str(), status.total);
+ wxLogTrace(M_TRACE_MFSTATUS,
+ "Added status for '%s' (%lu total, %lu unread)",
+ folderName.c_str(), status.total, status.unread);
// add it
@@ -182,6 +184,7 @@
}
- wxLogTrace(M_TRACE_MFSTATUS, "Changed status for '%s' (%lu msgs)",
- folderName.c_str(), status.total);
+ wxLogTrace(M_TRACE_MFSTATUS,
+ "Changed status for '%s' (%lu total, %lu unread)",
+ folderName.c_str(), status.total, status.unread);
}
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Caffeinated soap. No kidding.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates