diff --git a/src/config/config_db.cpp b/src/config/config_db.cpp index 7200398..038c05c 100644 --- a/src/config/config_db.cpp +++ b/src/config/config_db.cpp @@ -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; diff --git a/src/config/config_db.h b/src/config/config_db.h index 1ed9084..9d5c162 100644 --- a/src/config/config_db.h +++ b/src/config/config_db.h @@ -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); } diff --git a/src/config/config_http.cpp b/src/config/config_http.cpp index 75760ff..87dbb72 100644 --- a/src/config/config_http.cpp +++ b/src/config/config_http.cpp @@ -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; diff --git a/src/config/config_http.h b/src/config/config_http.h index 7cfcf86..605963b 100644 --- a/src/config/config_http.h +++ b/src/config/config_http.h @@ -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); } diff --git a/src/config/config_instance.cpp b/src/config/config_instance.cpp index 8690137..fb6eeab 100644 --- a/src/config/config_instance.cpp +++ b/src/config/config_instance.cpp @@ -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; diff --git a/src/config/config_instance.h b/src/config/config_instance.h index 6ee224f..28af117 100644 --- a/src/config/config_instance.h +++ b/src/config/config_instance.h @@ -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); }