Copy each node for traversal
FossilOrigin-Name: cabd0bffc2cba658d73277da657449b4423d164156d928499cbc45707e51fbec
This commit is contained in:
parent
0ccdc61fc4
commit
cd3d5cf2b2
6 changed files with 6 additions and 6 deletions
|
@ -26,7 +26,7 @@ namespace
|
|||
}
|
||||
|
||||
// Calls other (local) database functions if the database block exists
|
||||
void Config::load_database(Config::Database& cfg, YAML::Node& node)
|
||||
void Config::load_database(Config::Database& cfg, YAML::Node node)
|
||||
{
|
||||
if (!Config::enter_block(node, "database"))
|
||||
return;
|
||||
|
|
|
@ -33,6 +33,6 @@ namespace Config
|
|||
DB::Database::Type type{DB::Database::Type::Unset};
|
||||
};
|
||||
|
||||
void load_database(Config::Database& cfg, YAML::Node& node);
|
||||
void load_database(Config::Database& cfg, YAML::Node node);
|
||||
}
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include "config_http.h"
|
||||
#include "config_helpers.h"
|
||||
|
||||
void Config::load_http(Config::HTTP& cfg, YAML::Node& node)
|
||||
void Config::load_http(Config::HTTP& cfg, YAML::Node node)
|
||||
{
|
||||
if (!Config::enter_block(node, "http")) return;
|
||||
|
||||
|
|
|
@ -28,6 +28,6 @@ namespace Config
|
|||
uint16_t port{8080};
|
||||
};
|
||||
|
||||
void load_http(Config::HTTP& cfg, YAML::Node& node);
|
||||
void load_http(Config::HTTP& cfg, YAML::Node node);
|
||||
}
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include "config_instance.h"
|
||||
#include "config_helpers.h"
|
||||
|
||||
void Config::load_instance(Config::Instance& cfg, YAML::Node& node)
|
||||
void Config::load_instance(Config::Instance& cfg, YAML::Node node)
|
||||
{
|
||||
if (!Config::enter_block(node, "instance")) return;
|
||||
|
||||
|
|
|
@ -28,5 +28,5 @@ namespace Config
|
|||
std::string host{"localhost"};
|
||||
};
|
||||
|
||||
void load_instance(Config::Instance& cfg, YAML::Node& node);
|
||||
void load_instance(Config::Instance& cfg, YAML::Node node);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue