diff options
Diffstat (limited to 'include/mbgl/style/conversion_impl.hpp')
-rw-r--r-- | include/mbgl/style/conversion_impl.hpp | 4 |
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; |