From 00d10b536530e99c2d46fba833045d0ce186c101 Mon Sep 17 00:00:00 2001 From: rbock Date: Sun, 10 Sep 2017 15:54:59 +0200 Subject: [PATCH] Minor cleanup thanks to clang-tidy --- include/sqlpp11/data_types/day_point/operand.h | 4 +--- include/sqlpp11/data_types/text/operand.h | 4 +--- include/sqlpp11/verbatim.h | 2 +- include/sqlpp11/verbatim_table.h | 2 +- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/include/sqlpp11/data_types/day_point/operand.h b/include/sqlpp11/data_types/day_point/operand.h index 55acdb2d..cfcaf957 100644 --- a/include/sqlpp11/data_types/day_point/operand.h +++ b/include/sqlpp11/data_types/day_point/operand.h @@ -45,9 +45,7 @@ namespace sqlpp using _value_t = ::sqlpp::chrono::day_point; - day_point_operand() - { - } + day_point_operand() = default; day_point_operand(_value_t t) : _t(t) { diff --git a/include/sqlpp11/data_types/text/operand.h b/include/sqlpp11/data_types/text/operand.h index aaeb9df0..fc2fda1c 100644 --- a/include/sqlpp11/data_types/text/operand.h +++ b/include/sqlpp11/data_types/text/operand.h @@ -45,9 +45,7 @@ namespace sqlpp using _value_t = std::string; - text_operand() - { - } + text_operand() = default; text_operand(_value_t t) : _t(std::move(t)) { diff --git a/include/sqlpp11/verbatim.h b/include/sqlpp11/verbatim.h index e4d367fa..92dfd655 100644 --- a/include/sqlpp11/verbatim.h +++ b/include/sqlpp11/verbatim.h @@ -77,7 +77,7 @@ namespace sqlpp inline auto verbatim(std::string s) -> verbatim_t { - return {s}; + return {std::move(s)}; } } // namespace sqlpp diff --git a/include/sqlpp11/verbatim_table.h b/include/sqlpp11/verbatim_table.h index 86ddf2dd..1bbc59d4 100644 --- a/include/sqlpp11/verbatim_table.h +++ b/include/sqlpp11/verbatim_table.h @@ -90,7 +90,7 @@ namespace sqlpp inline verbatim_table_t verbatim_table(std::string name) { - return {name}; + return {std::move(name)}; } } // namespace sqlpp