summaryrefslogtreecommitdiff
path: root/src/mailbox.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailbox.cc')
-rw-r--r--src/mailbox.cc32
1 files changed, 12 insertions, 20 deletions
diff --git a/src/mailbox.cc b/src/mailbox.cc
index 53c8606..fd83276 100644
--- a/src/mailbox.cc
+++ b/src/mailbox.cc
@@ -2,13 +2,14 @@
* @file mailbox.cc
* @brief Implementation of the Mailbox class.
* @author Andreas Aardal Hanssen
- * @date 2002-2005
+ * @date 2002-2005
* ----------------------------------------------------------------- **/
-#include <string>
-
#include "mailbox.h"
+
#include "message.h"
+#include <string>
+
using namespace ::std;
using namespace Binc;
@@ -19,19 +20,13 @@ Mailbox::BaseIterator::BaseIterator(int sqn)
}
//------------------------------------------------------------------------
-Mailbox::BaseIterator::~BaseIterator(void)
-{
-}
+Mailbox::BaseIterator::~BaseIterator(void) {}
//------------------------------------------------------------------------
-Mailbox::Mailbox(void) : readOnly(false)
-{
-}
+Mailbox::Mailbox(void) : readOnly(false) {}
//------------------------------------------------------------------------
-Mailbox::~Mailbox(void)
-{
-}
+Mailbox::~Mailbox(void) {}
//------------------------------------------------------------------------
bool Mailbox::isReadOnly(void) const
@@ -46,31 +41,28 @@ void Mailbox::setReadOnly(bool readOnly)
}
//------------------------------------------------------------------------
-Mailbox::iterator::iterator(BaseIterator &i)
- : realIterator(i)
-{
-}
+Mailbox::iterator::iterator(BaseIterator &i) : realIterator(i) {}
//------------------------------------------------------------------------
-Message &Mailbox::iterator::operator *(void)
+Message &Mailbox::iterator::operator*(void)
{
return *realIterator;
}
//------------------------------------------------------------------------
-void Mailbox::iterator::operator ++(void)
+void Mailbox::iterator::operator++(void)
{
++realIterator;
}
//------------------------------------------------------------------------
-bool Mailbox::iterator::operator ==(const iterator &i) const
+bool Mailbox::iterator::operator==(const iterator &i) const
{
return realIterator == i.realIterator;
}
//------------------------------------------------------------------------
-bool Mailbox::iterator::operator !=(const iterator &i) const
+bool Mailbox::iterator::operator!=(const iterator &i) const
{
return realIterator != i.realIterator;
}