[core] Fix readability-redundant-smartptr-get errors in header files

As reported by clang-tidy-8.
This commit is contained in:
Thiago Marcos P. Santos
2020-03-27 18:30:35 +02:00
parent a1e5bffa90
commit 6559fa82a7
2 changed files with 2 additions and 4 deletions

View File

@@ -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>

View File

@@ -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 {