diff options
author | Razvan Becheriu <razvan@isc.org> | 2023-12-20 20:06:42 +0100 |
---|---|---|
committer | Razvan Becheriu <razvan@isc.org> | 2024-01-22 16:33:26 +0100 |
commit | 54dd674d0da13aac0cf2ca484842740477276e26 (patch) | |
tree | 884e70409a29a318cf9b038855204a8edbd042b0 /src/lib/database/dbaccess_parser.cc | |
parent | [#3119] Fixed some coverity reported defects (diff) | |
download | kea-54dd674d0da13aac0cf2ca484842740477276e26.tar.xz kea-54dd674d0da13aac0cf2ca484842740477276e26.zip |
[#3119] use auto const& whenever possible
Diffstat (limited to 'src/lib/database/dbaccess_parser.cc')
-rw-r--r-- | src/lib/database/dbaccess_parser.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/database/dbaccess_parser.cc b/src/lib/database/dbaccess_parser.cc index e31ae7a1a1..f6e70eacaf 100644 --- a/src/lib/database/dbaccess_parser.cc +++ b/src/lib/database/dbaccess_parser.cc @@ -58,7 +58,7 @@ DbAccessParser::parse(std::string& access_string, int64_t max_row_errors = 0; // 2. Update the copy with the passed keywords. - for (std::pair<std::string, ConstElementPtr> param : database_config->mapValue()) { + for (auto const& param : database_config->mapValue()) { try { if ((param.first == "persist") || (param.first == "readonly") || @@ -270,7 +270,7 @@ DbAccessParser::getDbAccessString() const { // Construct the database access string from all keywords and values in the // parameter map where the value is not null. string dbaccess; - for (auto keyval : values_) { + for (const auto& keyval : values_) { if (!keyval.second.empty()) { // Separate keyword/value pair from predecessor (if there is one). |