You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
STYLE: Replace T var; var = x with T var = x for types from std
For Standard Library types that have a non-trivial default-constructor and a
non-trivial assignment operator, `T var = x` is typically slightly faster than
`T var; var = x`. Otherwise it's just a matter of style.
Using Notepad++, Replace in Files, doing:
Find what: ^( [ ]+)(std::[^ ]*)([ ]+)(\w+);[\r\n]+\1\4\ =
Replace with: $1$2$3$4 =
Filters: itk*.*
Directory: D:\src\ITK\Modules
[v] Match case
(*) Regular expression
Follow-up to pull request InsightSoftwareConsortium#4932
commit 5b121f4
"STYLE: Replace `T var; var = x` with `T var = x` for arithmetic types"
0 commit comments