From 8f00ea37def4d0f3d36d77ec643a9abd193161b2 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 --- libsqlitepp/sqlite-command.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libsqlitepp/sqlite-command.cpp') 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(n + 1), s.data(), static_cast(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(); } -- cgit v1.2.3