diff options
author | artemp <artem@mapnik.org> | 2014-10-27 14:17:27 -0400 |
---|---|---|
committer | artemp <artem@mapnik.org> | 2014-10-27 14:18:12 -0400 |
commit | c3f3b9ddd52a3f1540eb6eb6711caca7efc4a8fb (patch) | |
tree | a77ebc2d837f8e0dfe643aeb866f9b7ff76e279c /src | |
parent | dcf643fb4b27f7dd1249514e4644d85d17cb1eb6 (diff) | |
download | qtlocation-mapboxgl-c3f3b9ddd52a3f1540eb6eb6711caca7efc4a8fb.tar.gz |
canonical move ctor
Diffstat (limited to 'src')
-rw-r--r-- | src/util/sqlite3.cpp | 5 |
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); |