summaryrefslogtreecommitdiff
path: root/src/database
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2019-11-06 17:22:00 +0100
committerlouiz’ <louiz@louiz.org>2019-11-06 17:23:43 +0100
commit4484a5f8ce207a29c07550b8b071a115c8d4ad59 (patch)
tree8c63e555c0f5d091360b2378ce937186354998ef /src/database
parente4a4addaf86abbee9d9bf5c486c5d1eaa78b6c2e (diff)
downloadbiboumi-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/database')
-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)