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: Declared m_ComputePerThreadVariables as an std::vector (2 x) #644

Merged
merged 1 commit into from
May 6, 2022

Commits on May 5, 2022

  1. STYLE: Declared m_ComputePerThreadVariables as an std::vector (2 x)

    Declared m_ComputePerThreadVariables of both as `AdvancedImageMomentsCalculator` and `ComputeDisplacementDistribution` as an `std::vector<AlignedComputePerThreadStruct>`, instead of a raw pointer to the structs. Simplified zero-initialization of the structs. Removed manual `delete[]` statements.
    
    Based on the second commit of pull request #132 "Improved style of m_ComputePerThreadVariable data members".
    
    Follows C++ Core Guidelines (April 10, 2022): "Avoid calling new and delete explicitly" http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rr-ptr
    N-Dekker committed May 5, 2022
    Configuration menu
    Copy the full SHA
    fc696f8 View commit details
    Browse the repository at this point in the history