Fix bug 71766: I absolutely hate returning ints for errors

svn path=/trunk/kdepim/; revision=276443
wilder-work
Bo Thorsen 23 years ago
parent 3493594e34
commit 2428988771
  1. 11
      kmfoldercachedimap.cpp
  2. 5
      kmfoldercachedimap.h

@ -205,8 +205,6 @@ int KMFolderCachedImap::readUidCache()
int KMFolderCachedImap::writeUidCache()
{
kdDebug( 5006 ) << "KMFolderCachedImap::writeUidCache() " << lastUid()
<< uidValidity() << endl;
if( lastUid() == 0 || uidValidity().isEmpty() )
// No info from the server yet
return 0;
@ -226,15 +224,6 @@ int KMFolderCachedImap::writeUidCache()
}
}
int KMFolderCachedImap::create(bool imap)
{
int rc = KMFolderMaildir::create(imap);
mLastUid = 0;
mUidValidity = "";
if( !rc ) return readUidCache();
return rc;
}
void KMFolderCachedImap::reloadUidMap()
{
uidMap.clear();

@ -110,11 +110,6 @@ public:
void setAccount(KMAcctCachedImap *acct);
KMAcctCachedImap* account();
/** Create a new folder with the name of this object and open it.
Returns zero on success and an error code equal to the
c-library fopen call otherwise. */
virtual int create(bool imap = FALSE);
/** Returns the filename of the uidcache file */
QString uidCacheLocation() const;

Loading…
Cancel
Save