From d7bc737751aae7bdc77c68e4d2953aa0d6670724 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Tue, 21 Aug 2018 19:54:47 +0200 Subject: Add two missing ref --- src/database/select_query.hpp | 2 +- src/utils/dirname.cpp | 2 +- src/utils/dirname.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/database/select_query.hpp b/src/database/select_query.hpp index b9fdc06..e372f2e 100644 --- a/src/database/select_query.hpp +++ b/src/database/select_query.hpp @@ -135,7 +135,7 @@ struct SelectQuery: public Query }; template -auto select(const Table table) +auto select(const Table& table) { SelectQuery query(table.name); return query; diff --git a/src/utils/dirname.cpp b/src/utils/dirname.cpp index 71c9c38..a304117 100644 --- a/src/utils/dirname.cpp +++ b/src/utils/dirname.cpp @@ -2,7 +2,7 @@ namespace utils { - std::string dirname(const std::string filename) + std::string dirname(const std::string& filename) { if (filename.empty()) return "./"; diff --git a/src/utils/dirname.hpp b/src/utils/dirname.hpp index c1df81b..73e1b57 100644 --- a/src/utils/dirname.hpp +++ b/src/utils/dirname.hpp @@ -2,5 +2,5 @@ namespace utils { -std::string dirname(const std::string filename); +std::string dirname(const std::string& filename); } -- cgit v1.2.3