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 03:17:22 +0300 |
commit | 4dc378a6426717875a14ff2c50711691e1872d99 (patch) | |
tree | dca36132591d16bb7b8a63d3c4f9b5e73fb10c21 | |
parent | ffbc663f2095d8a9e4e000654b64904be3e0d590 (diff) | |
download | qtlocation-mapboxgl-4dc378a6426717875a14ff2c50711691e1872d99.tar.gz |
[core] Fix readability-redundant-declaration errors in header files
As reported by clang-tidy-8.
-rw-r--r-- | include/mbgl/util/immutable.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mbgl/util/immutable.hpp b/include/mbgl/util/immutable.hpp index 4d251df8d9..bc6a0467ae 100644 --- a/include/mbgl/util/immutable.hpp +++ b/include/mbgl/util/immutable.hpp @@ -38,7 +38,9 @@ private: std::shared_ptr<T> ptr; template <class S> friend class Immutable; + // NOLINTNEXTLINE(readability-redundant-declaration) template <class S, class... Args> friend Mutable<S> makeMutable(Args&&...); + // NOLINTNEXTLINE(readability-redundant-declaration) template <class S, class U> friend Mutable<S> staticMutableCast(const Mutable<U>&); }; @@ -103,6 +105,8 @@ private: std::shared_ptr<const T> ptr; template <class S> friend class Immutable; + + // NOLINTNEXTLINE(readability-redundant-declaration) template <class S, class U> friend Immutable<S> staticImmutableCast(const Immutable<U>&); }; |