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: Remove p->Initialize() calls directly after p = T::New() #4972

Commits on Nov 21, 2024

  1. STYLE: Remove p->Initialize() calls directly after p = T::New()

    For any ITK type `T`, `T::New()` does already initialize the object it returns.
    
    Using Notepad++, Replace in Files, doing:
    
        Find what:  (\w+)([ ]+= .+::New\(\);)\r\n[\r\n]* [ ]+\1->Initialize\(\);
        Replace with:  $1$2
        Filters: itk*.* !+\test
        Directory: D:\src\ITK\Modules
        [v] Match case
        (*) Regular expression
    
    Manually removed an obsolete comment saying `Clear elements`.
    N-Dekker committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    249f99a View commit details
    Browse the repository at this point in the history