Index: include/core/SkRefCnt.h |
diff --git a/include/core/SkRefCnt.h b/include/core/SkRefCnt.h |
index c45ed6bbf06f0d261f6efde6b696da538166b0dd..3227e6874066f7f60fdfd4536df8b6cba153e087 100644 |
--- a/include/core/SkRefCnt.h |
+++ b/include/core/SkRefCnt.h |
@@ -264,8 +264,8 @@ template <typename T> class sk_sp { |
public: |
using element_type = T; |
- sk_sp() : fPtr(nullptr) {} |
- sk_sp(std::nullptr_t) : fPtr(nullptr) {} |
+ constexpr sk_sp() : fPtr(nullptr) {} |
+ constexpr sk_sp(std::nullptr_t) : fPtr(nullptr) {} |
/** |
* Shares the underlying object by calling ref(), so that both the argument and the newly |