summaryrefslogtreecommitdiff
path: root/src/operator-close.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/operator-close.cc')
-rw-r--r--src/operator-close.cc14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/operator-close.cc b/src/operator-close.cc
index 686f668..2727e25 100644
--- a/src/operator-close.cc
+++ b/src/operator-close.cc
@@ -1,9 +1,10 @@
-/** --------------------------------------------------------------------
+/**
* @file operator-close.cc
* @brief Implementation of the CLOSE command.
* @author Andreas Aardal Hanssen
* @date 2002-2005
- * ----------------------------------------------------------------- **/
+ */
+
#include "depot.h"
#include "mailbox.h"
#include "operators.h"
@@ -12,28 +13,22 @@
#include <string>
-using namespace ::std;
using namespace Binc;
-//----------------------------------------------------------------------
CloseOperator::CloseOperator(void) {}
-//----------------------------------------------------------------------
CloseOperator::~CloseOperator(void) {}
-//------------------------------------------------------------------------
-const string CloseOperator::getName(void) const
+const std::string CloseOperator::getName(void) const
{
return "CLOSE";
}
-//------------------------------------------------------------------------
int CloseOperator::getState(void) const
{
return Session::SELECTED;
}
-//------------------------------------------------------------------------
Operator::ProcessResult CloseOperator::process(Depot &depot, Request &command)
{
Mailbox *mailbox = depot.getSelected();
@@ -47,7 +42,6 @@ Operator::ProcessResult CloseOperator::process(Depot &depot, Request &command)
return OK;
}
-//----------------------------------------------------------------------
Operator::ParseResult CloseOperator::parse(Request &c_in) const
{
Session &session = Session::getInstance();