Remove a useless std::move() and copy

This commit is contained in:
louiz’
2019-11-06 17:23:43 +01:00
parent e4a4addaf8
commit 4484a5f8ce
+2 -2
View File
@@ -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)