Skip to content

STYLE: Remove static_cast from randomSeed in ElastixBase BeforeAllBase() - #1500

Merged
N-Dekker merged 1 commit into
mainfrom
Remove-static_cast-from-randomSeed
Nov 25, 2026
Merged

N-Dekker merged 1 commit into
mainfrom
Remove-static_cast-from-randomSeed

Conversation

@N-Dekker

Copy link
Copy Markdown
Member

Following C++ Core Guidelines, Jun 14, 2026, "Avoid casts", https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#res-casts

Used brace-initialization to ensure that the conversion from 121212 is lossless.


For the record, the static_cast<SeedType> was introduced by commit dfc650d, May 13, 2011.

Following C++ Core Guidelines, Jun 14, 2026, "Avoid casts", https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#res-casts

Used brace-initialization to ensure that the conversion from 121212 is lossless.
@N-Dekker
N-Dekker merged commit cb314dd into main Nov 25, 2026
8 checks passed
@N-Dekker
N-Dekker deleted the Remove-static_cast-from-randomSeed branch November 25, 2026 11:58
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.

1 participant