From d1b8bde8f1b335ff06fb7806e2ed079265aad360 Mon Sep 17 00:00:00 2001 From: rbock Date: Wed, 27 Feb 2019 13:53:28 +0100 Subject: [PATCH] Cleanup bogus return statements --- include/sqlpp11/group_by.h | 2 +- include/sqlpp11/having.h | 2 +- include/sqlpp11/order_by.h | 2 +- include/sqlpp11/select_column_list.h | 2 +- include/sqlpp11/select_flag_list.h | 2 +- include/sqlpp11/update_list.h | 2 +- include/sqlpp11/using.h | 2 +- include/sqlpp11/where.h | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/sqlpp11/group_by.h b/include/sqlpp11/group_by.h index 3066e917..91985459 100644 --- a/include/sqlpp11/group_by.h +++ b/include/sqlpp11/group_by.h @@ -102,7 +102,7 @@ namespace sqlpp template void _add_impl(Expression expression, const std::true_type& /*unused*/) { - return _data._dynamic_expressions.emplace_back(expression); + _data._dynamic_expressions.emplace_back(expression); } template diff --git a/include/sqlpp11/having.h b/include/sqlpp11/having.h index ee451fb5..ff377052 100644 --- a/include/sqlpp11/having.h +++ b/include/sqlpp11/having.h @@ -103,7 +103,7 @@ namespace sqlpp template void _add_impl(Expr expression, const std::true_type& /*unused*/) { - return _data._dynamic_expressions.emplace_back(expression); + _data._dynamic_expressions.emplace_back(expression); } template diff --git a/include/sqlpp11/order_by.h b/include/sqlpp11/order_by.h index 1ca1758d..d1ef5da4 100644 --- a/include/sqlpp11/order_by.h +++ b/include/sqlpp11/order_by.h @@ -100,7 +100,7 @@ namespace sqlpp template void _add_impl(Expression expression, const std::true_type& /*unused*/) { - return _data._dynamic_expressions.emplace_back(expression); + _data._dynamic_expressions.emplace_back(expression); } template diff --git a/include/sqlpp11/select_column_list.h b/include/sqlpp11/select_column_list.h index c10a3858..05c28698 100644 --- a/include/sqlpp11/select_column_list.h +++ b/include/sqlpp11/select_column_list.h @@ -147,7 +147,7 @@ namespace sqlpp template void _add_impl(NamedExpression namedExpression, const std::true_type& /*unused*/) { - return _data._dynamic_columns.emplace_back(auto_alias_t{namedExpression}); + _data._dynamic_columns.emplace_back(auto_alias_t{namedExpression}); } template diff --git a/include/sqlpp11/select_flag_list.h b/include/sqlpp11/select_flag_list.h index 92ec5ba1..0420b200 100644 --- a/include/sqlpp11/select_flag_list.h +++ b/include/sqlpp11/select_flag_list.h @@ -96,7 +96,7 @@ namespace sqlpp template void _add_impl(Flag flag, const std::true_type& /*unused*/) { - return _data._dynamic_flags.emplace_back(flag); + _data._dynamic_flags.emplace_back(flag); } template diff --git a/include/sqlpp11/update_list.h b/include/sqlpp11/update_list.h index b6b5d3db..746cdd6a 100644 --- a/include/sqlpp11/update_list.h +++ b/include/sqlpp11/update_list.h @@ -100,7 +100,7 @@ namespace sqlpp template void _add_impl(Assignment assignment, const std::true_type& /*unused*/) { - return _data._dynamic_assignments.emplace_back(assignment); + _data._dynamic_assignments.emplace_back(assignment); } template diff --git a/include/sqlpp11/using.h b/include/sqlpp11/using.h index 8d368c5c..409e2bae 100644 --- a/include/sqlpp11/using.h +++ b/include/sqlpp11/using.h @@ -92,7 +92,7 @@ namespace sqlpp template void _add_impl(Table table, const std::true_type& /*unused*/) { - return _data._dynamic_tables.emplace_back(table); + _data._dynamic_tables.emplace_back(table); } template diff --git a/include/sqlpp11/where.h b/include/sqlpp11/where.h index 9acf0a4c..d79d390e 100644 --- a/include/sqlpp11/where.h +++ b/include/sqlpp11/where.h @@ -105,7 +105,7 @@ namespace sqlpp template void _add_impl(Expr expression, const std::true_type& /*unused*/) { - return _data._dynamic_expressions.emplace_back(expression); + _data._dynamic_expressions.emplace_back(expression); } template