]> OCCT Git - occt.git/commit
Foundation Classes - Modernize NCollection_SparseArrayBase memory handling and style...
authorPasukhin Dmitry <dpasukhi@opencascade.com>
Tue, 4 Nov 2025 10:55:54 +0000 (10:55 +0000)
committerGitHub <noreply@github.com>
Tue, 4 Nov 2025 10:55:54 +0000 (10:55 +0000)
commitf923370c820e3bcc26e1f8f7266b93e18148f67d
tree5a7a77f339ee2b7398857bb2a754918a1d19a655
parentf0f1578853013e9be1f16bf406becfb6de9332cf
Foundation Classes - Modernize NCollection_SparseArrayBase memory handling and style (#804)

- Replace malloc/calloc/free with Standard::AllocateOptimal/Standard::Free for OCCT-consistent memory management
- Modernize constructor declarations and use nullptr instead of 0 for null pointers
- Replace custom swap implementation with std::swap and add noexcept specifications
src/FoundationClasses/TKernel/NCollection/NCollection_SparseArray.hxx
src/FoundationClasses/TKernel/NCollection/NCollection_SparseArrayBase.cxx
src/FoundationClasses/TKernel/NCollection/NCollection_SparseArrayBase.hxx