summaryrefslogtreecommitdiff
path: root/include/mbgl/util/image.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/util/image.hpp')
-rw-r--r--include/mbgl/util/image.hpp4
1 files changed, 1 insertions, 3 deletions
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 {