summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/database/count_query.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/database/count_query.hpp b/src/database/count_query.hpp
index 118ce44..3990eb9 100644
--- a/src/database/count_query.hpp
+++ b/src/database/count_query.hpp
@@ -8,10 +8,10 @@
struct CountQuery: public Query
{
- CountQuery(std::string name):
+ CountQuery(const std::string& name):
Query("SELECT count(*) FROM ")
{
- this->body += std::move(name);
+ this->body += name;
}
int64_t execute(DatabaseEngine& db)