diff options
author | louiz’ <louiz@louiz.org> | 2019-11-06 17:22:00 +0100 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2019-11-06 17:23:43 +0100 |
commit | 4484a5f8ce207a29c07550b8b071a115c8d4ad59 (patch) | |
tree | 8c63e555c0f5d091360b2378ce937186354998ef /src | |
parent | e4a4addaf86abbee9d9bf5c486c5d1eaa78b6c2e (diff) | |
download | biboumi-4484a5f8ce207a29c07550b8b071a115c8d4ad59.tar.gz biboumi-4484a5f8ce207a29c07550b8b071a115c8d4ad59.tar.bz2 biboumi-4484a5f8ce207a29c07550b8b071a115c8d4ad59.tar.xz biboumi-4484a5f8ce207a29c07550b8b071a115c8d4ad59.zip |
Remove a useless std::move() and copy
Diffstat (limited to 'src')
-rw-r--r-- | src/database/count_query.hpp | 4 |
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) |