summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorartemp <artem@mapnik.org>2014-10-27 14:17:27 -0400
committerartemp <artem@mapnik.org>2014-10-27 14:18:12 -0400
commitc3f3b9ddd52a3f1540eb6eb6711caca7efc4a8fb (patch)
treea77ebc2d837f8e0dfe643aeb866f9b7ff76e279c /src
parentdcf643fb4b27f7dd1249514e4644d85d17cb1eb6 (diff)
downloadqtlocation-mapboxgl-c3f3b9ddd52a3f1540eb6eb6711caca7efc4a8fb.tar.gz
canonical move ctor
Diffstat (limited to 'src')
-rw-r--r--src/util/sqlite3.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/util/sqlite3.cpp b/src/util/sqlite3.cpp
index 19e0ce9c79..787db83992 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);