summaryrefslogtreecommitdiff
path: root/libodbcpp/odbc-param.cpp
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
commit704dd8c7ecedb68161c52329e22141877143ff13 (patch)
tree0f803a65439b03fc66f523d3d311ed842d66e716 /libodbcpp/odbc-param.cpp
parentenum class BulkUpdates (diff)
downloadlibdbpp-odbc-main.tar.bz2
libdbpp-odbc-main.tar.xz
libdbpp-odbc-main.zip
Lots of pass by value and perfect forwarding optimisationsHEADlibdbpp-odbc-1.4.7main
Diffstat (limited to 'libodbcpp/odbc-param.cpp')
-rw-r--r--libodbcpp/odbc-param.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/libodbcpp/odbc-param.cpp b/libodbcpp/odbc-param.cpp
index e69e848..781f103 100644
--- a/libodbcpp/odbc-param.cpp
+++ b/libodbcpp/odbc-param.cpp
@@ -68,10 +68,10 @@ SIMPLEBINDER(double, FloatingPointParam, F)
SIMPLEBINDER(float, FloatingPointParam, F)
SIMPLEBINDER(const Glib::ustring &, StdStringParam, S)
-SIMPLEBINDER(const std::string_view &, StdStringParam, S)
+SIMPLEBINDER(const std::string_view, StdStringParam, S)
-SIMPLEBINDER(const boost::posix_time::ptime &, TimeStampParam, T)
-SIMPLEBINDER(const boost::posix_time::time_duration &, IntervalParam, T)
+SIMPLEBINDER(const boost::posix_time::ptime, TimeStampParam, T)
+SIMPLEBINDER(const boost::posix_time::time_duration, IntervalParam, T)
void
ODBC::Command::bindNull(unsigned int i)
@@ -94,7 +94,7 @@ ODBC::StdStringParam::operator=(Glib::ustring const & d)
}
ODBC::StdStringParam &
-ODBC::StdStringParam::operator=(std::string_view const & d)
+ODBC::StdStringParam::operator=(const std::string_view d)
{
const char * addr = data.data();
data = d;
@@ -108,7 +108,7 @@ ODBC::StdStringParam::operator=(std::string_view const & d)
}
ODBC::TimeStampParam &
-ODBC::TimeStampParam::operator=(const boost::posix_time::ptime & d)
+ODBC::TimeStampParam::operator=(const boost::posix_time::ptime d)
{
data.year = static_cast<SQLSMALLINT>(d.date().year());
data.month = d.date().month();
@@ -121,7 +121,7 @@ ODBC::TimeStampParam::operator=(const boost::posix_time::ptime & d)
}
ODBC::IntervalParam &
-ODBC::IntervalParam::operator=(const boost::posix_time::time_duration & d)
+ODBC::IntervalParam::operator=(const boost::posix_time::time_duration d)
{
data.interval_type = SQL_IS_DAY_TO_SECOND;
data.interval_sign = d.is_negative();