diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-03-27 18:30:35 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-04-17 13:36:50 +0300 |
commit | cc8b0e1746cfc6fdc99582fdb09e7624b14d9d0e (patch) | |
tree | 3a57a6c0fc77d4c2e78657948294b6cc5e18d8e0 /src/mbgl/programs | |
parent | b49517b73705e69d401925658ae0657b8a98b6a6 (diff) | |
download | qtlocation-mapboxgl-cc8b0e1746cfc6fdc99582fdb09e7624b14d9d0e.tar.gz |
[core] Fix performance-noexcept-move-constructor in header files
As reported by clang-tidy-8.
Diffstat (limited to 'src/mbgl/programs')
-rw-r--r-- | src/mbgl/programs/segment.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mbgl/programs/segment.hpp b/src/mbgl/programs/segment.hpp index 13e206aa2a..908c0b5f3b 100644 --- a/src/mbgl/programs/segment.hpp +++ b/src/mbgl/programs/segment.hpp @@ -22,6 +22,11 @@ public: indexLength(indexLength_), sortKey(sortKey_) {} + // FIXME: clang-tidy-8 still complains here and clang-cl + // on Windows gives the error: "exception specification of + // explicitly defaulted move constructor does not match + // the calculated one" when marking this 'noexcept'. + // NOLINTNEXTLINE(performance-noexcept-move-constructor) Segment(Segment&&) = default; const std::size_t vertexOffset; |