summaryrefslogtreecommitdiff
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
commit8f00ea37def4d0f3d36d77ec643a9abd193161b2 (patch)
tree8e14de5c204705755ec035e0dfe2ff26b34e0751
parentenum class BulkUpdates (diff)
downloadlibdbpp-sqlite-8f00ea37def4d0f3d36d77ec643a9abd193161b2.tar.bz2
libdbpp-sqlite-8f00ea37def4d0f3d36d77ec643a9abd193161b2.tar.xz
libdbpp-sqlite-8f00ea37def4d0f3d36d77ec643a9abd193161b2.zip
Lots of pass by value and perfect forwarding optimisationsHEADlibdbpp-sqlite-1.4.7main
-rw-r--r--libsqlitepp/sqlite-command.cpp6
-rw-r--r--libsqlitepp/sqlite-command.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/libsqlitepp/sqlite-command.cpp b/libsqlitepp/sqlite-command.cpp
index a789269..7f5e137 100644
--- a/libsqlitepp/sqlite-command.cpp
+++ b/libsqlitepp/sqlite-command.cpp
@@ -74,7 +74,7 @@ SQLite::Command::bindParamS(unsigned int n, const Glib::ustring & s)
return bindParamS(n, std::string_view(s.raw()));
}
void
-SQLite::Command::bindParamS(unsigned int n, const std::string_view & s)
+SQLite::Command::bindParamS(unsigned int n, const std::string_view s)
{
if (sqlite3_bind_text(stmt, static_cast<int>(n + 1), s.data(), static_cast<int>(s.length()), SQLITE_STATIC)
!= SQLITE_OK) {
@@ -87,12 +87,12 @@ SQLite::Command::bindParamB(unsigned int, bool)
throw DB::ParameterTypeNotSupported();
}
void
-SQLite::Command::bindParamT(unsigned int, const boost::posix_time::time_duration &)
+SQLite::Command::bindParamT(unsigned int, const boost::posix_time::time_duration)
{
throw DB::ParameterTypeNotSupported();
}
void
-SQLite::Command::bindParamT(unsigned int, const boost::posix_time::ptime &)
+SQLite::Command::bindParamT(unsigned int, const boost::posix_time::ptime)
{
throw DB::ParameterTypeNotSupported();
}
diff --git a/libsqlitepp/sqlite-command.h b/libsqlitepp/sqlite-command.h
index 2bf9cc1..ca5d6f9 100644
--- a/libsqlitepp/sqlite-command.h
+++ b/libsqlitepp/sqlite-command.h
@@ -28,10 +28,10 @@ namespace SQLite {
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;