diff options
Diffstat (limited to 'platform/default/src/mbgl/storage/sqlite3.cpp')
-rw-r--r-- | platform/default/src/mbgl/storage/sqlite3.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/platform/default/src/mbgl/storage/sqlite3.cpp b/platform/default/src/mbgl/storage/sqlite3.cpp index 522210f88f..3eb5194e2c 100644 --- a/platform/default/src/mbgl/storage/sqlite3.cpp +++ b/platform/default/src/mbgl/storage/sqlite3.cpp @@ -144,10 +144,9 @@ Database::Database(std::unique_ptr<DatabaseImpl> impl_) : impl(std::move(impl_)) {} -Database::Database(Database &&other) - : impl(std::move(other.impl)) {} +Database::Database(Database&& other) noexcept : impl(std::move(other.impl)) {} -Database &Database::operator=(Database &&other) { +Database& Database::operator=(Database&& other) noexcept { std::swap(impl, other.impl); return *this; } |