summaryrefslogtreecommitdiff
path: root/src/operator-search.cc
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis@fehcom.de>2023-10-10 22:27:45 +0200
committerJannis M. Hoffmann <jannis@fehcom.de>2023-10-10 22:27:45 +0200
commite96321af67185460f917846b6f55f96d108c6ba8 (patch)
treef02c882c1fe867a614eb82fd2a595d82729a6d84 /src/operator-search.cc
parente662cb9875e974bd22a09f164fad41626aa26206 (diff)
remove unnecessary void in empty function declarations
Diffstat (limited to 'src/operator-search.cc')
-rw-r--r--src/operator-search.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/operator-search.cc b/src/operator-search.cc
index 30b6ea2..c013e70 100644
--- a/src/operator-search.cc
+++ b/src/operator-search.cc
@@ -85,14 +85,14 @@ bool SearchOperator::SearchNode::convertDateHeader(const string &d_in, time_t &t
return result;
}
-SearchOperator::SearchNode::SearchNode(void) {}
+SearchOperator::SearchNode::SearchNode() {}
SearchOperator::SearchNode::SearchNode(const BincImapParserSearchKey &a)
{
init(a);
}
-int SearchOperator::SearchNode::getType(void) const
+int SearchOperator::SearchNode::getType() const
{
return type;
}
@@ -459,7 +459,7 @@ void SearchOperator::SearchNode::init(const BincImapParserSearchKey &a)
}
}
-int SearchOperator::SearchNode::getWeight(void) const
+int SearchOperator::SearchNode::getWeight() const
{
return weight;
}
@@ -469,23 +469,23 @@ void SearchOperator::SearchNode::setWeight(int i)
weight = i;
}
-void SearchOperator::SearchNode::order(void)
+void SearchOperator::SearchNode::order()
{
for (auto &i : children)
i.order();
stable_sort(children.begin(), children.end(), compareNodes);
}
-SearchOperator::SearchOperator(void) {}
+SearchOperator::SearchOperator() {}
-SearchOperator::~SearchOperator(void) {}
+SearchOperator::~SearchOperator() {}
-const string SearchOperator::getName(void) const
+const string SearchOperator::getName() const
{
return "SEARCH";
}
-int SearchOperator::getState(void) const
+int SearchOperator::getState() const
{
return Session::SELECTED;
}