Remove a useless std::move() and copy
This commit is contained in:
@@ -8,10 +8,10 @@
|
|||||||
|
|
||||||
struct CountQuery: public Query
|
struct CountQuery: public Query
|
||||||
{
|
{
|
||||||
CountQuery(std::string name):
|
CountQuery(const std::string& name):
|
||||||
Query("SELECT count(*) FROM ")
|
Query("SELECT count(*) FROM ")
|
||||||
{
|
{
|
||||||
this->body += std::move(name);
|
this->body += name;
|
||||||
}
|
}
|
||||||
|
|
||||||
int64_t execute(DatabaseEngine& db)
|
int64_t execute(DatabaseEngine& db)
|
||||||
|
|||||||
Reference in New Issue
Block a user