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

STYLE: Replace Allocate(); FillBuffer(0) with AllocateInitialized() #4494

Conversation

N-Dekker
Copy link
Contributor

@N-Dekker N-Dekker commented Mar 5, 2024

Replaced lines of code of the form

image>Allocate();
image>FillBuffer(zero);

With image->AllocateInitialized();.

Cases found by the regular expression ^(.+->)Allocate.+;\r\n\1FillBuffer.

Follow-up to pull request #4479 commit 47fe345
"ENH: Add AllocateInitialized() to ImageBase"

Replaced lines of code of the form

    image>Allocate();
    image>FillBuffer(zero);

With `image->AllocateInitialized();`.

Cases found by the regular expression `^(.+->)Allocate.+;\r\n\1FillBuffer`.

Follow-up to pull request InsightSoftwareConsortium#4479
commit 47fe345
"ENH: Add `AllocateInitialized()` to ImageBase"
@github-actions github-actions bot added area:Filtering Issues affecting the Filtering module area:Registration Issues affecting the Registration module area:Segmentation Issues affecting the Segmentation module type:Style Style changes: no logic impact (indentation, comments, naming) labels Mar 5, 2024
@N-Dekker N-Dekker marked this pull request as ready for review March 5, 2024 17:54
@hjmjohnson hjmjohnson merged commit cd49925 into InsightSoftwareConsortium:master Mar 6, 2024
12 checks passed
@N-Dekker N-Dekker deleted the Replace-Allocate-FillBuffer-with-AllocateInitialized branch March 13, 2024 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:Filtering Issues affecting the Filtering module area:Registration Issues affecting the Registration module area:Segmentation Issues affecting the Segmentation module type:Style Style changes: no logic impact (indentation, comments, naming)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants