@@ -44,9 +44,9 @@ class ICEBERG_EXPORT InheritableMetadata {
4444 virtual ~InheritableMetadata () = default ;
4545
4646 // / \brief Apply inheritable metadata to a manifest entry.
47- // / \param entry The manifest entry to modify.
47+ // / \param entry The manifest entry to modify in-place .
4848 // / \return The modified manifest entry with inherited metadata applied.
49- virtual Result<ManifestEntry> Apply (ManifestEntry entry) = 0;
49+ virtual Result<ManifestEntry> Apply (ManifestEntry& entry) = 0;
5050};
5151
5252// / \brief Base implementation of InheritableMetadata that handles standard inheritance
@@ -62,9 +62,9 @@ class ICEBERG_EXPORT BaseInheritableMetadata : public InheritableMetadata {
6262 std::string manifest_location);
6363
6464 // / \brief Apply inheritance rules to a manifest entry.
65- // / \param entry The manifest entry to modify.
65+ // / \param entry The manifest entry to modify in-place .
6666 // / \return The modified manifest entry.
67- Result<ManifestEntry> Apply (ManifestEntry entry) override ;
67+ Result<ManifestEntry> Apply (ManifestEntry& entry) override ;
6868
6969 private:
7070 int32_t spec_id_;
@@ -77,7 +77,9 @@ class ICEBERG_EXPORT BaseInheritableMetadata : public InheritableMetadata {
7777class ICEBERG_EXPORT EmptyInheritableMetadata : public InheritableMetadata {
7878 public:
7979 // / \brief Apply no inheritance - returns the entry unchanged.
80- Result<ManifestEntry> Apply (ManifestEntry entry) override ;
80+ // / \param entry The manifest entry (unchanged).
81+ // / \return The manifest entry.
82+ Result<ManifestEntry> Apply (ManifestEntry& entry) override ;
8183};
8284
8385// / \brief Metadata inheritance for copying manifests before commit.
@@ -88,7 +90,9 @@ class ICEBERG_EXPORT CopyInheritableMetadata : public InheritableMetadata {
8890 explicit CopyInheritableMetadata (int64_t snapshot_id);
8991
9092 // / \brief Apply copy inheritance rules.
91- Result<ManifestEntry> Apply (ManifestEntry entry) override ;
93+ // / \param entry The manifest entry to modify in-place.
94+ // / \return The modified manifest entry.
95+ Result<ManifestEntry> Apply (ManifestEntry& entry) override ;
9296
9397 private:
9498 int64_t snapshot_id_;
0 commit comments