-
-
Notifications
You must be signed in to change notification settings - Fork 675
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
STYLE: Declare WindowedSincInterpolateImageFunction data as fixed arrays
Declared the private (internal) WindowedSincInterpolateImageFunction data members `m_WeightOffsetTable` and `m_WeightOffsetTable` as fixed-size C-style arrays, instead of raw pointers to dynamically allocated memory. Declared the private data members `m_WindowSize` and `m_OffsetTableSize` both `static constexpr`, to ensure compile-time evaluation. Defaulted the default-constructor and destructor of `WindowedSincInterpolateImageFunction`, as they now no longer need to explicitly manage the internal data. Following C++ Core Guidelines, April 10, 2022, "Prefer scoped objects, don’t heap-allocate unnecessarily", https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#r5-prefer-scoped-objects-dont-heap-allocate-unnecessarily
- Loading branch information
Showing
2 changed files
with
9 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters