From aae2742b9dbc2a5908459372d75e11a0fdec5cb5 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 17 Mar 2022 19:45:15 +0000 Subject: Lots of pass by value and perfect forwarding optimisations --- libmysqlpp/my-command.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libmysqlpp/my-command.cpp') 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) -- cgit v1.2.3