summaryrefslogtreecommitdiffstats
path: root/src/lib/mysql
diff options
context:
space:
mode:
authorRazvan Becheriu <razvan@isc.org>2023-12-20 20:06:42 +0100
committerRazvan Becheriu <razvan@isc.org>2024-01-22 16:33:26 +0100
commit54dd674d0da13aac0cf2ca484842740477276e26 (patch)
tree884e70409a29a318cf9b038855204a8edbd042b0 /src/lib/mysql
parent[#3119] Fixed some coverity reported defects (diff)
downloadkea-54dd674d0da13aac0cf2ca484842740477276e26.tar.xz
kea-54dd674d0da13aac0cf2ca484842740477276e26.zip
[#3119] use auto const& whenever possible
Diffstat (limited to 'src/lib/mysql')
-rw-r--r--src/lib/mysql/mysql_connection.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/mysql/mysql_connection.h b/src/lib/mysql/mysql_connection.h
index c66da05dfa..5aefae8de4 100644
--- a/src/lib/mysql/mysql_connection.h
+++ b/src/lib/mysql/mysql_connection.h
@@ -450,7 +450,7 @@ public:
checkUnusable();
// Extract native input bindings.
std::vector<MYSQL_BIND> in_bind_vec;
- for (MySqlBindingPtr in_binding : in_bindings) {
+ for (const MySqlBindingPtr& in_binding : in_bindings) {
in_bind_vec.push_back(in_binding->getMySqlBinding());
}
@@ -464,7 +464,7 @@ public:
// Bind variables that will receive results as well.
std::vector<MYSQL_BIND> out_bind_vec;
- for (MySqlBindingPtr out_binding : out_bindings) {
+ for (const MySqlBindingPtr& out_binding : out_bindings) {
out_bind_vec.push_back(out_binding->getMySqlBinding());
}
if (!out_bind_vec.empty()) {
@@ -527,7 +527,7 @@ public:
const MySqlBindingCollection& in_bindings) {
checkUnusable();
std::vector<MYSQL_BIND> in_bind_vec;
- for (MySqlBindingPtr in_binding : in_bindings) {
+ for (const MySqlBindingPtr& in_binding : in_bindings) {
in_bind_vec.push_back(in_binding->getMySqlBinding());
}
@@ -571,7 +571,7 @@ public:
const MySqlBindingCollection& in_bindings) {
checkUnusable();
std::vector<MYSQL_BIND> in_bind_vec;
- for (MySqlBindingPtr in_binding : in_bindings) {
+ for (const MySqlBindingPtr& in_binding : in_bindings) {
in_bind_vec.push_back(in_binding->getMySqlBinding());
}