Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove a couple of private property setters in OLEPropertiesContainer #178

Merged
merged 1 commit into from
Oct 5, 2024

Conversation

Numpsy
Copy link
Contributor

@Numpsy Numpsy commented Oct 5, 2024

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
@@ -126,8 +126,6 @@ internal OLEPropertiesContainer(CFStream cfStream)
UserDefinedProperties = new OLEPropertiesContainer(pStream.PropertySet1.PropertyContext.CodePage, ContainerType.UserDefinedProperties);
HasUserDefinedProperties = true;

UserDefinedProperties.ContainerType = ContainerType.UserDefinedProperties;
Copy link
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
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 ironfede:master Oct 5, 2024
1 check passed
@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