summaryrefslogtreecommitdiff
path: root/src/operator-store.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/operator-store.cc')
-rw-r--r--src/operator-store.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/operator-store.cc b/src/operator-store.cc
index 4c5b9d4..23d97e2 100644
--- a/src/operator-store.cc
+++ b/src/operator-store.cc
@@ -29,7 +29,7 @@ const string StoreOperator::getName() const
return "STORE";
}
-int StoreOperator::getState() const
+Session::State StoreOperator::getState() const
{
return Session::SELECTED;
}
@@ -117,14 +117,16 @@ Operator::ProcessResult StoreOperator::process(Depot &depot, Request &command)
command.getUidMode());
}
- return OK;
+ return ProcessResult::OK;
}
-Operator::ParseResult StoreOperator::parse(Request &c_in) const
+Parser::ParseResult StoreOperator::parse(Request &c_in)
{
+ constexpr auto ACCEPT = Parser::ParseResult::ACCEPT;
+
Session &session = Session::getInstance();
- Operator::ParseResult res;
+ Parser::ParseResult res;
if ((res = expectSPACE()) != ACCEPT) {
session.setLastError("Expected SPACE");
return res;