summaryrefslogtreecommitdiff
path: root/platform/default/src/mbgl/storage/sqlite3.cpp
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2020-03-20 12:38:09 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2020-03-23 12:09:09 +0200
commit991cfee7df24acf50893c669d3a135e474945e97 (patch)
treef6235b61a0fdd857d65f4b2ef5a75113087b90b2 /platform/default/src/mbgl/storage/sqlite3.cpp
parent6223fc2898949eb1228b91da26dc4a1997a83c58 (diff)
downloadqtlocation-mapboxgl-991cfee7df24acf50893c669d3a135e474945e97.tar.gz
[core] Fix performance-noexcept-move-constructor errors
As reported by clang-tidy-8.
Diffstat (limited to 'platform/default/src/mbgl/storage/sqlite3.cpp')
-rw-r--r--platform/default/src/mbgl/storage/sqlite3.cpp5
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;
}