1
0
Fork 0
This commit is contained in:
Jan 2019-07-25 13:03:30 +02:00 committed by GitHub
parent f9cb4d6590
commit 4ea95bc109
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 19 additions and 19 deletions

View File

@ -401,7 +401,7 @@ struct AgencyWriteTransaction : public AgencyTransaction {
std::back_inserter(preconditions)); std::back_inserter(preconditions));
} }
AgencyWriteTransaction() : clientId(randomClientId()) {}; AgencyWriteTransaction() : clientId(randomClientId()) {}
void toVelocyPack(arangodb::velocypack::Builder& builder) const override final; void toVelocyPack(arangodb::velocypack::Builder& builder) const override final;

View File

@ -37,7 +37,7 @@ class AgentInterface {
bool _discardStartup; bool _discardStartup;
bool _privileged; bool _privileged;
WriteMode(bool d = false, bool p = false) WriteMode(bool d = false, bool p = false)
: _discardStartup(d), _privileged(p){}; : _discardStartup(d), _privileged(p) {}
bool privileged() const { return _privileged; } bool privileged() const { return _privileged; }
bool discardStartup() const { return _discardStartup; } bool discardStartup() const { return _discardStartup; }
}; };

View File

@ -58,7 +58,7 @@ EnumerateListExecutor::EnumerateListExecutor(Fetcher& fetcher, EnumerateListExec
_currentRow{CreateInvalidInputRowHint{}}, _currentRow{CreateInvalidInputRowHint{}},
_rowState(ExecutionState::HASMORE), _rowState(ExecutionState::HASMORE),
_inputArrayPosition(0), _inputArrayPosition(0),
_inputArrayLength(0){}; _inputArrayLength(0) {}
std::pair<ExecutionState, NoStats> EnumerateListExecutor::produceRows(OutputAqlItemRow& output) { std::pair<ExecutionState, NoStats> EnumerateListExecutor::produceRows(OutputAqlItemRow& output) {
while (true) { while (true) {

View File

@ -43,7 +43,7 @@ IdExecutorInfos::IdExecutorInfos(RegisterId nrInOutRegisters,
template <class UsedFetcher> template <class UsedFetcher>
IdExecutor<UsedFetcher>::IdExecutor(Fetcher& fetcher, IdExecutorInfos& infos) IdExecutor<UsedFetcher>::IdExecutor(Fetcher& fetcher, IdExecutorInfos& infos)
: _fetcher(fetcher){}; : _fetcher(fetcher) {}
template <class UsedFetcher> template <class UsedFetcher>
IdExecutor<UsedFetcher>::~IdExecutor() = default; IdExecutor<UsedFetcher>::~IdExecutor() = default;

View File

@ -42,6 +42,6 @@ ReturnExecutorInfos::ReturnExecutorInfos(RegisterId inputRegister, RegisterId nr
_doCount(doCount) {} _doCount(doCount) {}
ReturnExecutor::ReturnExecutor(Fetcher& fetcher, ReturnExecutorInfos& infos) ReturnExecutor::ReturnExecutor(Fetcher& fetcher, ReturnExecutorInfos& infos)
: _infos(infos), _fetcher(fetcher){}; : _infos(infos), _fetcher(fetcher) {}
ReturnExecutor::~ReturnExecutor() = default; ReturnExecutor::~ReturnExecutor() = default;

View File

@ -109,7 +109,7 @@ std::vector<SortRegister>& SortExecutorInfos::sortRegisters() {
bool SortExecutorInfos::stable() const { return _stable; } bool SortExecutorInfos::stable() const { return _stable; }
SortExecutor::SortExecutor(Fetcher& fetcher, SortExecutorInfos& infos) SortExecutor::SortExecutor(Fetcher& fetcher, SortExecutorInfos& infos)
: _infos(infos), _fetcher(fetcher), _input(nullptr), _returnNext(0){}; : _infos(infos), _fetcher(fetcher), _input(nullptr), _returnNext(0) {}
SortExecutor::~SortExecutor() = default; SortExecutor::~SortExecutor() = default;
std::pair<ExecutionState, NoStats> SortExecutor::produceRows(OutputAqlItemRow& output) { std::pair<ExecutionState, NoStats> SortExecutor::produceRows(OutputAqlItemRow& output) {

View File

@ -605,8 +605,8 @@ std::unique_ptr<ClusterCommResult> ClusterComm::syncRequest(
std::atomic<bool> wasSignaled; std::atomic<bool> wasSignaled;
SharedVariables() = delete; SharedVariables() = delete;
SharedVariables(ClusterCommResult * preparedResult) explicit SharedVariables(ClusterCommResult* preparedResult)
: result(preparedResult), wasSignaled(false) {}; : result(preparedResult), wasSignaled(false) {}
}; };
// this shared_ptr is not atomic (until c++20), careful // this shared_ptr is not atomic (until c++20), careful

View File

@ -251,7 +251,7 @@ class StreamRepairOperationVisitor : public boost::static_visitor<std::ostream&>
StreamRepairOperationVisitor() = delete; StreamRepairOperationVisitor() = delete;
explicit StreamRepairOperationVisitor(std::ostream& stream_) explicit StreamRepairOperationVisitor(std::ostream& stream_)
: _stream(stream_){}; : _stream(stream_) {}
std::ostream& operator()(BeginRepairsOperation const& op) { std::ostream& operator()(BeginRepairsOperation const& op) {
return _stream << op; return _stream << op;

View File

@ -55,7 +55,7 @@ CreateDatabase::CreateDatabase(MaintenanceFeature& feature, ActionDescription co
} }
} }
CreateDatabase::~CreateDatabase(){}; CreateDatabase::~CreateDatabase() {}
bool CreateDatabase::first() { bool CreateDatabase::first() {
VPackSlice users; VPackSlice users;

View File

@ -60,7 +60,7 @@ DropCollection::DropCollection(MaintenanceFeature& feature, ActionDescription co
} }
} }
DropCollection::~DropCollection(){}; DropCollection::~DropCollection() {}
bool DropCollection::first() { bool DropCollection::first() {
auto const& database = _description.get(DATABASE); auto const& database = _description.get(DATABASE);

View File

@ -53,7 +53,7 @@ DropDatabase::DropDatabase(MaintenanceFeature& feature, ActionDescription const&
} }
} }
DropDatabase::~DropDatabase(){}; DropDatabase::~DropDatabase() {}
bool DropDatabase::first() { bool DropDatabase::first() {
std::string const database = _description.get(DATABASE); std::string const database = _description.get(DATABASE);

View File

@ -63,7 +63,7 @@ DropIndex::DropIndex(MaintenanceFeature& feature, ActionDescription const& d)
} }
} }
DropIndex::~DropIndex(){}; DropIndex::~DropIndex() {}
bool DropIndex::first() { bool DropIndex::first() {
auto const& database = _description.get(DATABASE); auto const& database = _description.get(DATABASE);

View File

@ -82,7 +82,7 @@ class MaintenanceFeature : public application_features::ApplicationFeature {
virtual void stop() override; virtual void stop() override;
// shut down the feature // shut down the feature
virtual void unprepare() override{}; virtual void unprepare() override {}
// //
// api features // api features

View File

@ -72,7 +72,7 @@ ResignShardLeadership::ResignShardLeadership(MaintenanceFeature& feature,
} }
} }
ResignShardLeadership::~ResignShardLeadership(){}; ResignShardLeadership::~ResignShardLeadership() {}
bool ResignShardLeadership::first() { bool ResignShardLeadership::first() {
std::string const& database = _description.get(DATABASE); std::string const& database = _description.get(DATABASE);

View File

@ -123,7 +123,7 @@ SynchronizeShard::~SynchronizeShard() {}
class SynchronizeShardCallback : public arangodb::ClusterCommCallback { class SynchronizeShardCallback : public arangodb::ClusterCommCallback {
public: public:
explicit SynchronizeShardCallback(SynchronizeShard* callie){}; explicit SynchronizeShardCallback(SynchronizeShard* callee) {}
virtual bool operator()(arangodb::ClusterCommResult*) override final { virtual bool operator()(arangodb::ClusterCommResult*) override final {
return true; return true;
} }

View File

@ -143,7 +143,7 @@ void handleLeadership(LogicalCollection& collection, std::string const& localLea
} }
} }
UpdateCollection::~UpdateCollection(){}; UpdateCollection::~UpdateCollection() {}
bool UpdateCollection::first() { bool UpdateCollection::first() {
auto const& database = _description.get(DATABASE); auto const& database = _description.get(DATABASE);

View File

@ -55,7 +55,7 @@ struct Success {
std::shared_ptr<Graph const> graph; std::shared_ptr<Graph const> graph;
explicit Success(std::shared_ptr<Graph const> graph_) explicit Success(std::shared_ptr<Graph const> graph_)
: graph(std::move(graph_)){}; : graph(std::move(graph_)) {}
Success& operator=(Success const& other) = default; Success& operator=(Success const& other) = default;
Success() = delete; Success() = delete;
}; };

View File

@ -62,7 +62,7 @@ class GraphManager {
public: public:
explicit GraphManager(TRI_vocbase_t& vocbase) explicit GraphManager(TRI_vocbase_t& vocbase)
: GraphManager(vocbase, false){}; : GraphManager(vocbase, false) {}
GraphManager(TRI_vocbase_t& vocbase, bool isInTransaction) GraphManager(TRI_vocbase_t& vocbase, bool isInTransaction)
: _vocbase(vocbase), _isInTransaction(isInTransaction) {} : _vocbase(vocbase), _isInTransaction(isInTransaction) {}