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 | 385df6300c3f513e21acf28cc7943138ac0c8739 (patch) | |
tree | d2e7891b0dc0ec9ba094c1b4e8d9793381364b4c | |
parent | abadf031580c69eac48c3e05ca17b3439d2ca4db (diff) | |
download | qtlocation-mapboxgl-385df6300c3f513e21acf28cc7943138ac0c8739.tar.gz |
[core] Fix readability-redundant-smartptr-get errors in header files
As reported by clang-tidy-8.
-rw-r--r-- | include/mbgl/style/color_ramp_property_value.hpp | 2 | ||||
-rw-r--r-- | include/mbgl/util/image.hpp | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/include/mbgl/style/color_ramp_property_value.hpp b/include/mbgl/style/color_ramp_property_value.hpp index bc5639c899..1b9385f85f 100644 --- a/include/mbgl/style/color_ramp_property_value.hpp +++ b/include/mbgl/style/color_ramp_property_value.hpp @@ -27,7 +27,7 @@ public: ColorRampPropertyValue() : value(nullptr) {} ColorRampPropertyValue(std::shared_ptr<expression::Expression> value_) : value(std::move(value_)) {} - bool isUndefined() const { return value.get() == nullptr; } + bool isUndefined() const { return value == nullptr; } // noop, needed for batch evaluation of paint property values to compile template <typename Evaluator> diff --git a/include/mbgl/util/image.hpp b/include/mbgl/util/image.hpp index e997c02223..75a49550b1 100644 --- a/include/mbgl/util/image.hpp +++ b/include/mbgl/util/image.hpp @@ -56,9 +56,7 @@ public: return !(lhs == rhs); } - bool valid() const { - return !size.isEmpty() && data.get() != nullptr; - } + bool valid() const { return !size.isEmpty() && data != nullptr; } template <typename T = Image> T clone() const { |