[core] Fix readability-redundant-smartptr-get errors in header files
As reported by clang-tidy-8.
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user