-
-
Notifications
You must be signed in to change notification settings - Fork 664
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
Small style improvements in FileOutputWindow
and QuadEdgeMesh
#4939
Conversation
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't mind
There was a problem hiding this 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.
Converted back to draft, because there appears no consensus on my proposed removal of |
`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
e45c110
to
aa38494
Compare
Update: Just dropped the commit STYLE: Remove |
MINCImageIO
, FileOutputWindow
, QuadEdgeMesh
FileOutputWindow
and QuadEdgeMesh
1b41e94
into
InsightSoftwareConsortium:master
I guess these
threetwo commits are rather trivial. They just address some little cases that I noticed when doing larger pull requests, specifically:T var; var = x
withT var = x
for arithmetic types #4932T * p; p = x
withT * p = x
, useauto *
for variables initialized by a pointer cast #4937