summaryrefslogtreecommitdiff
path: root/include/mbgl/style
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2020-03-27 18:30:35 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2020-04-17 13:36:50 +0300
commitcc8b0e1746cfc6fdc99582fdb09e7624b14d9d0e (patch)
tree3a57a6c0fc77d4c2e78657948294b6cc5e18d8e0 /include/mbgl/style
parentb49517b73705e69d401925658ae0657b8a98b6a6 (diff)
downloadqtlocation-mapboxgl-cc8b0e1746cfc6fdc99582fdb09e7624b14d9d0e.tar.gz
[core] Fix performance-noexcept-move-constructor in header files
As reported by clang-tidy-8.
Diffstat (limited to 'include/mbgl/style')
-rw-r--r--include/mbgl/style/conversion_impl.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mbgl/style/conversion_impl.hpp b/include/mbgl/style/conversion_impl.hpp
index 1a2d13d7e2..11d3bae9ce 100644
--- a/include/mbgl/style/conversion_impl.hpp
+++ b/include/mbgl/style/conversion_impl.hpp
@@ -102,7 +102,7 @@ public:
new (static_cast<void*>(&storage)) std::decay_t<T>(std::forward<T>(value));
}
- Convertible(Convertible&& v) : vtable(v.vtable) {
+ Convertible(Convertible&& v) noexcept : vtable(v.vtable) {
// NOLINTNEXTLINE(performance-move-const-arg)
vtable->move(std::move(v.storage), storage);
}
@@ -111,7 +111,7 @@ public:
vtable->destroy(storage);
}
- Convertible& operator=(Convertible&& v) {
+ Convertible& operator=(Convertible&& v) noexcept {
if (this != &v) {
vtable->destroy(storage);
vtable = v.vtable;