@@ -1573,11 +1573,12 @@ def generate_contained_constructors(object_prop: ObjectProperty, is_updater = Fa
15731573 children = [f'{ prop .id } (*this, { index } )' for index , prop in enumerate (obj .object_properties )]
15741574
15751575 typename = obj .typename_updater if is_updater else obj .typename_contained
1576+ const = '' if is_updater else 'const '
15761577 headers = [
15771578 '' ,
15781579 f'{ typename } () = default;' ,
15791580 '' ,
1580- f'{ typename } (ConfigDB::Object& parent, const ConfigDB::PropertyInfo& prop, uint16_t offset): ' + ', ' .join ([
1581+ f'{ typename } ({ const } ConfigDB::Object& parent, const ConfigDB::PropertyInfo& prop, uint16_t offset): ' + ', ' .join ([
15811582 f'{ obj .base_class } { template } (parent, prop, offset)' ,
15821583 * children
15831584 ]),
@@ -1588,7 +1589,7 @@ def generate_contained_constructors(object_prop: ObjectProperty, is_updater = Fa
15881589 if not object_prop .is_store :
15891590 headers += [
15901591 '' ,
1591- f'{ typename } (ConfigDB::Object& parent, unsigned propIndex, uint16_t index = 0): ' + ', ' .join ([
1592+ f'{ typename } ({ const } ConfigDB::Object& parent, unsigned propIndex, uint16_t index = 0): ' + ', ' .join ([
15921593 f'{ obj .base_class } { template } (parent, propIndex, index)' ,
15931594 * children
15941595 ]),
0 commit comments