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);