summaryrefslogtreecommitdiffstats
path: root/src/lib/database/dbaccess_parser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/database/dbaccess_parser.cc')
-rw-r--r--src/lib/database/dbaccess_parser.cc4
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).