Skip to content

STYLE: Remove 9 no-op dynamic_casts (casting T* to T*)#2365

Merged
dzenanz merged 1 commit intoInsightSoftwareConsortium:masterfrom
N-Dekker:Remove-no-op-dynamic_cast
Mar 4, 2021
Merged

STYLE: Remove 9 no-op dynamic_casts (casting T* to T*)#2365
dzenanz merged 1 commit intoInsightSoftwareConsortium:masterfrom
N-Dekker:Remove-no-op-dynamic_cast

Conversation

@N-Dekker
Copy link
Copy Markdown
Contributor

@N-Dekker N-Dekker commented Mar 4, 2021

Removed nine "no-op" dynamic_casts that just cast pointers to their own
compile-time type.

Note: in those cases where auto was used to declare a variable
initialized by such a no-op dynamic_cast, this commit replaced
auto by the explicitly specified declaration type.

Removed nine "no-op" dynamic_casts that just cast pointers to their own
compile-time type.

Note: in those cases where `auto` was used to declare a variable
initialized by such a no-op `dynamic_cast`, this commit replaced
`auto` by the explicitly specified declaration type.
@N-Dekker
Copy link
Copy Markdown
Contributor Author

N-Dekker commented Mar 4, 2021

Follow-up to pull request #2360 (which specifically did Modules/Core).

@N-Dekker N-Dekker marked this pull request as ready for review March 4, 2021 17:08
@dzenanz dzenanz merged commit 5089a04 into InsightSoftwareConsortium:master Mar 4, 2021
N-Dekker added a commit to N-Dekker/ITK that referenced this pull request Mar 17, 2021
Removed the three "no-op" dynamic_casts of `this->GetPosteriorImage()`
from the implementation of `BayesianClassifierImageFilter`.

Follow-up to:
pull request InsightSoftwareConsortium#2365
commit 5089a04
"STYLE: Remove 9 no-op dynamic_casts (casting T* to T*)"
dzenanz pushed a commit that referenced this pull request Mar 18, 2021
Removed the three "no-op" dynamic_casts of `this->GetPosteriorImage()`
from the implementation of `BayesianClassifierImageFilter`.

Follow-up to:
pull request #2365
commit 5089a04
"STYLE: Remove 9 no-op dynamic_casts (casting T* to T*)"
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