diff options
Diffstat (limited to 'src/pendingupdates.cc')
-rw-r--r-- | src/pendingupdates.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/pendingupdates.cc b/src/pendingupdates.cc index bf4e0f2..402a75b 100644 --- a/src/pendingupdates.cc +++ b/src/pendingupdates.cc @@ -80,7 +80,8 @@ bool PendingUpdates::newRecent(void) const PendingUpdates::expunged_const_iterator::expunged_const_iterator(void) {} -PendingUpdates::expunged_const_iterator::expunged_const_iterator(vector<unsigned int>::iterator i) +PendingUpdates::expunged_const_iterator::expunged_const_iterator( + vector<unsigned int>::iterator i) : internal(i) {} @@ -221,8 +222,8 @@ bool Binc::pendingUpdates(Mailbox *mailbox, } vector<string> customFlags = i.getCustomFlags(); - for (vector<string>::const_iterator it = customFlags.begin(); it != customFlags.end(); ++it) { - if (flagv.size() > 0 || it != customFlags.begin()) bincClient << " "; + for (auto it = customFlags.cbegin(); it != customFlags.cend(); ++it) { + if (flagv.size() > 0 || it != customFlags.cbegin()) bincClient << " "; bincClient << *it; } |