summaryrefslogtreecommitdiff
path: root/libmysqlpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-03-17 19:45:15 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-03-17 19:45:15 +0000
commitaae2742b9dbc2a5908459372d75e11a0fdec5cb5 (patch)
tree254282fe9de0e7fec31a2ddeb48fb54115187d60 /libmysqlpp
parentenum class BulkUpdates (diff)
downloadlibdbpp-mysql-aae2742b9dbc2a5908459372d75e11a0fdec5cb5.tar.bz2
libdbpp-mysql-aae2742b9dbc2a5908459372d75e11a0fdec5cb5.tar.xz
libdbpp-mysql-aae2742b9dbc2a5908459372d75e11a0fdec5cb5.zip
Lots of pass by value and perfect forwarding optimisations
Diffstat (limited to 'libmysqlpp')
-rw-r--r--libmysqlpp/my-command.cpp6
-rw-r--r--libmysqlpp/my-command.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/libmysqlpp/my-command.cpp b/libmysqlpp/my-command.cpp
index ca6dc59..9606db5 100644
--- a/libmysqlpp/my-command.cpp
+++ b/libmysqlpp/my-command.cpp
@@ -116,7 +116,7 @@ MySQL::Command::bindParamS(unsigned int n, const Glib::ustring & s)
}
void
-MySQL::Command::bindParamS(unsigned int n, const std::string_view & s)
+MySQL::Command::bindParamS(unsigned int n, const std::string_view s)
{
binds[n].buffer_type = MYSQL_TYPE_STRING;
// NOLINTNEXTLINE(hicpp-no-malloc)
@@ -126,7 +126,7 @@ MySQL::Command::bindParamS(unsigned int n, const std::string_view & s)
binds[n].is_unsigned = false;
}
void
-MySQL::Command::bindParamT(unsigned int n, const boost::posix_time::ptime & v)
+MySQL::Command::bindParamT(unsigned int n, const boost::posix_time::ptime v)
{
binds[n].buffer_type = MYSQL_TYPE_DATETIME;
// NOLINTNEXTLINE(hicpp-no-malloc)
@@ -142,7 +142,7 @@ MySQL::Command::bindParamT(unsigned int n, const boost::posix_time::ptime & v)
ts.neg = false;
}
void
-MySQL::Command::bindParamT(unsigned int n, const boost::posix_time::time_duration & v)
+MySQL::Command::bindParamT(unsigned int n, const boost::posix_time::time_duration v)
{
binds[n].buffer_type = MYSQL_TYPE_TIME;
// NOLINTNEXTLINE(hicpp-no-malloc)
diff --git a/libmysqlpp/my-command.h b/libmysqlpp/my-command.h
index 5fbf2ef..94e8643 100644
--- a/libmysqlpp/my-command.h
+++ b/libmysqlpp/my-command.h
@@ -34,10 +34,10 @@ namespace MySQL {
void bindParamF(unsigned int, float) override;
void bindParamS(unsigned int, const Glib::ustring &) override;
- void bindParamS(unsigned int, const std::string_view &) override;
+ void bindParamS(unsigned int, const std::string_view) override;
- void bindParamT(unsigned int, const boost::posix_time::time_duration &) override;
- void bindParamT(unsigned int, const boost::posix_time::ptime &) override;
+ void bindParamT(unsigned int, const boost::posix_time::time_duration) override;
+ void bindParamT(unsigned int, const boost::posix_time::ptime) override;
void bindNull(unsigned int) override;