From c3f3b9ddd52a3f1540eb6eb6711caca7efc4a8fb Mon Sep 17 00:00:00 2001 From: artemp Date: Mon, 27 Oct 2014 14:17:27 -0400 Subject: [PATCH] canonical move ctor --- src/util/sqlite3.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/util/sqlite3.cpp b/src/util/sqlite3.cpp index 19e0ce9c7..787db8399 100644 --- a/src/util/sqlite3.cpp +++ b/src/util/sqlite3.cpp @@ -15,9 +15,8 @@ Database::Database(const std::string &filename, int flags) { } } -Database::Database(Database &&other) { - *this = std::move(other); -} +Database::Database(Database &&other) + : db(std::move(other.db)) {} Database &Database::operator=(Database &&other) { std::swap(db, other.db);