diff options
Diffstat (limited to 'src/operator-close.cc')
-rw-r--r-- | src/operator-close.cc | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/operator-close.cc b/src/operator-close.cc index d67dcc7..686f668 100644 --- a/src/operator-close.cc +++ b/src/operator-close.cc @@ -4,26 +4,22 @@ * @author Andreas Aardal Hanssen * @date 2002-2005 * ----------------------------------------------------------------- **/ -#include <string> - #include "depot.h" #include "mailbox.h" #include "operators.h" #include "recursivedescent.h" #include "session.h" +#include <string> + using namespace ::std; using namespace Binc; //---------------------------------------------------------------------- -CloseOperator::CloseOperator(void) -{ -} +CloseOperator::CloseOperator(void) {} //---------------------------------------------------------------------- -CloseOperator::~CloseOperator(void) -{ -} +CloseOperator::~CloseOperator(void) {} //------------------------------------------------------------------------ const string CloseOperator::getName(void) const @@ -38,8 +34,7 @@ int CloseOperator::getState(void) const } //------------------------------------------------------------------------ -Operator::ProcessResult CloseOperator::process(Depot &depot, - Request &command) +Operator::ProcessResult CloseOperator::process(Depot &depot, Request &command) { Mailbox *mailbox = depot.getSelected(); mailbox->expungeMailbox(); @@ -57,8 +52,7 @@ Operator::ParseResult CloseOperator::parse(Request &c_in) const { Session &session = Session::getInstance(); - if (c_in.getUidMode()) - return REJECT; + if (c_in.getUidMode()) return REJECT; Operator::ParseResult res; if ((res = expectCRLF()) != ACCEPT) { |