diff options
Diffstat (limited to 'src/maildir.cc')
-rw-r--r-- | src/maildir.cc | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/maildir.cc b/src/maildir.cc index 4452010..81a7d7c 100644 --- a/src/maildir.cc +++ b/src/maildir.cc @@ -39,7 +39,7 @@ using std::string; // Used to generate the unique names for Maildir delivery static int numDeliveries = 0; -Maildir::iterator::iterator(void) {} +Maildir::iterator::iterator() {} Maildir::iterator::iterator(Maildir *home, MessageMap::iterator it, @@ -77,19 +77,19 @@ Maildir::iterator &Maildir::iterator::operator=(const iterator ©) return *this; } -Maildir::iterator::~iterator(void) {} +Maildir::iterator::~iterator() {} -MaildirMessage &Maildir::iterator::curMessage(void) +MaildirMessage &Maildir::iterator::curMessage() { return i->second; } -Message &Maildir::iterator::operator*(void) +Message &Maildir::iterator::operator*() { return curMessage(); } -void Maildir::iterator::operator++(void) +void Maildir::iterator::operator++() { ++i; ++sqnr; @@ -107,7 +107,7 @@ bool Maildir::iterator::operator!=(const BaseIterator &a) const return !((*this) == a); } -void Maildir::iterator::reposition(void) +void Maildir::iterator::reposition() { for (;;) { if (i == mailbox->messages.end()) break; @@ -144,7 +144,7 @@ Mailbox::iterator Maildir::begin(const SequenceSet &bset, unsigned int mod) cons return Mailbox::iterator(beginIterator); } -Mailbox::iterator Maildir::end(void) const +Mailbox::iterator Maildir::end() const { endIterator = iterator(const_cast<Maildir *>(this), messages.end(), @@ -153,7 +153,7 @@ Mailbox::iterator Maildir::end(void) const return Mailbox::iterator(endIterator); } -void Maildir::iterator::erase(void) +void Maildir::iterator::erase() { MessageMap::iterator iter = i; ++iter; @@ -166,7 +166,7 @@ void Maildir::iterator::erase(void) reposition(); } -Maildir::Maildir(void) : Mailbox() +Maildir::Maildir() : Mailbox() { firstscan = true; cacheRead = false; @@ -177,7 +177,7 @@ Maildir::Maildir(void) : Mailbox() oldexists = 0; } -Maildir::~Maildir(void) {} +Maildir::~Maildir() {} void Maildir::setPath(const string &path_in) { @@ -251,7 +251,7 @@ bool Maildir::isMailbox(const std::string &s_in) const && (stat((s_in + "/tmp").c_str(), &mystat) == 0 && S_ISDIR(mystat.st_mode))); } -const std::string Maildir::getTypeName(void) const +const std::string Maildir::getTypeName() const { return "Maildir"; } @@ -423,7 +423,7 @@ bool Maildir::getStatus(const string &path, Status &s) const return true; } -unsigned int Maildir::getMaxUid(void) const +unsigned int Maildir::getMaxUid() const { MessageMap::const_iterator i = messages.end(); if (i == messages.begin()) return 0; @@ -442,7 +442,7 @@ unsigned int Maildir::getMaxUid(void) const return 0; } -unsigned int Maildir::getMaxSqnr(void) const +unsigned int Maildir::getMaxSqnr() const { int sqnr = messages.size(); MessageMap::const_iterator i = messages.end(); @@ -463,12 +463,12 @@ unsigned int Maildir::getMaxSqnr(void) const return 0; } -unsigned int Maildir::getUidValidity(void) const +unsigned int Maildir::getUidValidity() const { return uidvalidity; } -unsigned int Maildir::getUidNext(void) const +unsigned int Maildir::getUidNext() const { return uidnext; } @@ -615,7 +615,7 @@ bool Maildir::commitNewMessages(const string &mbox) return true; } -bool Maildir::rollBackNewMessages(void) +bool Maildir::rollBackNewMessages() { // Fixme: Messages that are in committedMessages should be skipped here. for (const auto &i : newMessages) @@ -701,7 +701,7 @@ void Maildir::add(MaildirMessage &m) index.insert(m.getUnique(), m.getUID()); } -unsigned int MaildirIndex::getSize(void) const +unsigned int MaildirIndex::getSize() const { return idx.size(); } @@ -734,18 +734,18 @@ MaildirIndexItem *MaildirIndex::find(const string &unique) return nullptr; } -void MaildirIndex::clear(void) +void MaildirIndex::clear() { idx.clear(); } -void MaildirIndex::clearUids(void) +void MaildirIndex::clearUids() { for (auto &it : idx) it.second.uid = 0; } -void MaildirIndex::clearFileNames(void) +void MaildirIndex::clearFileNames() { for (auto &it : idx) it.second.fileName = ""; |