Sitelet https://github.com/openmcdf/openmcdf/pull/178
Skip to content

Remove a couple of private property setters in OLEPropertiesContainer - #178

Merged
ironfede merged 1 commit into
openmcdf:masterfrom
Numpsy:intenral
Oct 5, 2024
Merged

ironfede merged 1 commit into
openmcdf:masterfrom
Numpsy:intenral

Conversation

@Numpsy

@Numpsy Numpsy commented Oct 5, 2024 •

Copy link
Copy Markdown
Contributor

Pulling in a couple of minor changes from my other PRs - I don't think these would be counted as API changes as they're private anyway, but that can be confirmed by others.

I don't think these should be settable - ContainerType is set on consturction and I don't think you'd want to change that afterwards, and I don't think there is a need for the context to be replaced - the properties inside it can be changed if needed

@Numpsy Numpsy changed the title Remove a couple of private property settings in OLEPropertiesContainer Remove a couple of private property setters in OLEPropertiesContainer Oct 5, 2024
UserDefinedProperties = new OLEPropertiesContainer(pStream.PropertySet1.PropertyContext.CodePage, ContainerType.UserDefinedProperties);
HasUserDefinedProperties = true;

UserDefinedProperties.ContainerType = ContainerType.UserDefinedProperties;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ContainerType property in OLEPropertiesContaineris set to the value passed into the constructor, so I don't think it needs to be set here as well

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could remove this line without the other changes though

@ironfede
ironfede merged commit 7ee006f into openmcdf:master Oct 5, 2024
@Numpsy
Numpsy deleted the intenral branch October 6, 2024 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants