diff --git a/cpp/src/arrow/extension_type.h b/cpp/src/arrow/extension_type.h index b3f085198be69..38200f42c62e8 100644 --- a/cpp/src/arrow/extension_type.h +++ b/cpp/src/arrow/extension_type.h @@ -98,7 +98,7 @@ class ARROW_EXPORT ExtensionType : public DataType { protected: explicit ExtensionType(std::shared_ptr storage_type) - : DataType(Type::EXTENSION), storage_type_(storage_type) {} + : DataType(Type::EXTENSION), storage_type_(std::move(storage_type)) {} std::shared_ptr storage_type_; };