mirror of https://gitee.com/bigwinds/arangodb
pass variables by const reference
This commit is contained in:
parent
a3c9d6b5f8
commit
ec6c6a5e68
|
@ -32,7 +32,7 @@ using namespace arangodb::maintenance;
|
|||
/// @brief ctor
|
||||
ActionDescription::ActionDescription(
|
||||
std::map<std::string, std::string> const& d,
|
||||
std::shared_ptr<VPackBuilder> const p) :
|
||||
std::shared_ptr<VPackBuilder> const& p) :
|
||||
_description(d), _properties(p) {
|
||||
TRI_ASSERT(d.find(NAME) != d.end());
|
||||
TRI_ASSERT(p == nullptr || p->isEmpty() || p->slice().isObject());
|
||||
|
|
|
@ -69,7 +69,7 @@ public:
|
|||
*/
|
||||
ActionDescription(
|
||||
std::map<std::string, std::string> const& desc,
|
||||
std::shared_ptr<VPackBuilder> const suppl = std::make_shared<VPackBuilder>());
|
||||
std::shared_ptr<VPackBuilder> const& suppl = std::make_shared<VPackBuilder>());
|
||||
|
||||
/**
|
||||
* @brief Clean up
|
||||
|
|
|
@ -365,7 +365,7 @@ std::shared_ptr<Action> MaintenanceFeature::createAndRegisterAction(
|
|||
|
||||
|
||||
std::shared_ptr<Action> MaintenanceFeature::findAction(
|
||||
std::shared_ptr<ActionDescription> const description) {
|
||||
std::shared_ptr<ActionDescription> const& description) {
|
||||
return findActionHash(description->hash());
|
||||
}
|
||||
|
||||
|
|
|
@ -153,7 +153,7 @@ public:
|
|||
* @param desc Description of sought action
|
||||
*/
|
||||
std::shared_ptr<maintenance::Action> findAction(
|
||||
std::shared_ptr<maintenance::ActionDescription> const desc);
|
||||
std::shared_ptr<maintenance::ActionDescription> const& desc);
|
||||
|
||||
/**
|
||||
* @brief add index error to bucket
|
||||
|
|
Loading…
Reference in New Issue