diff --git a/src/iceberg/file_reader.cc b/src/iceberg/file_reader.cc index 022002a55..d0e291d96 100644 --- a/src/iceberg/file_reader.cc +++ b/src/iceberg/file_reader.cc @@ -60,12 +60,12 @@ Result> ReaderFactoryRegistry::Open( } std::unique_ptr ReaderProperties::default_properties() { - return std::unique_ptr(new ReaderProperties()); + return std::make_unique(); } std::unique_ptr ReaderProperties::FromMap( const std::unordered_map& properties) { - auto reader_properties = std::unique_ptr(new ReaderProperties()); + auto reader_properties = std::make_unique(); reader_properties->configs_ = properties; return reader_properties; }