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

Small style improvements in FileOutputWindow and QuadEdgeMesh #4939

Conversation

N-Dekker
Copy link
Contributor

@N-Dekker N-Dekker commented Nov 7, 2024

I guess these three two commits are rather trivial. They just address some little cases that I noticed when doing larger pull requests, specifically:

@github-actions github-actions bot added area:Core Issues affecting the Core module area:IO Issues affecting the IO module labels Nov 7, 2024
Copy link
Contributor

Choose a reason for hiding this comment

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

I was trying to make sign flip clearly visible.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, thanks @vfonov Of course I can revert my proposed adjustment, if you want to. But still... what would you think of _sep *= -1.0 (instead of your original _sep = -_sep)?

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't mind

@N-Dekker N-Dekker marked this pull request as ready for review November 8, 2024 10:42
Copy link
Member

@hjmjohnson hjmjohnson left a comment

Choose a reason for hiding this comment

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

This is good to me with or without the sign flip clarification change.

@N-Dekker N-Dekker marked this pull request as draft November 11, 2024 18:43
@N-Dekker
Copy link
Contributor Author

Converted back to draft, because there appears no consensus on my proposed removal of _sep = -_sep. Specifically, Vladimir does not seem to like it. So I'll reconsider that code change.

`m_Stream` is a non-static member of `itk::FileOutputWindow`, so it cannot be
accessed anymore when the FileOutputWindow object is destructed.
Found by the regular expression `(\w+ \*)([ ]+\w+ = )\(\1\)nullptr`.

Following C++ Core Guidelines, Oct 3, 2024, "Avoid casts",
http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#es48-avoid-casts
@N-Dekker N-Dekker force-pushed the Style-MINCImageIO-QuadEdgeMesh-FileOutputWindow branch from e45c110 to aa38494 Compare November 12, 2024 13:54
@github-actions github-actions bot removed the area:IO Issues affecting the IO module label Nov 12, 2024
@N-Dekker
Copy link
Contributor Author

Update: Just dropped the commit STYLE: Remove _sep = -_sep from MINCImageIO::WriteImageInformation(), in order to ease getting this pull request processed.

@N-Dekker N-Dekker changed the title Small style improvements MINCImageIO, FileOutputWindow, QuadEdgeMesh Small style improvements in FileOutputWindow and QuadEdgeMesh Nov 12, 2024
@N-Dekker N-Dekker marked this pull request as ready for review November 12, 2024 14:00
@hjmjohnson hjmjohnson merged commit 1b41e94 into InsightSoftwareConsortium:master Nov 12, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:Core Issues affecting the Core module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants