diff options
Diffstat (limited to 'src/lib/mysql')
-rw-r--r-- | src/lib/mysql/mysql_connection.h | 8 |
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()); } |