]> OCCT Git - occt-copy.git/commit
0029769: Uninitialized data with BSplCLib_Cache, BSplSLib_Cache
authorabv <abv@opencascade.com>
Sun, 10 Jun 2018 19:40:12 +0000 (22:40 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 20 Jul 2018 09:15:03 +0000 (12:15 +0300)
commitfa641b9c4f727c39fb6254f070611d03ffc63baa
tree5e5aee77ab04b02249a4860d600bc6ab86db0826
parente2f5f730affc7c73b7e69afd5d9ad282fb907520
0029769: Uninitialized data with BSplCLib_Cache, BSplSLib_Cache

Implementation of classes BSplCLib_Cache and BSplSLib_Cache is revised:
- Common functionality dealing with spans along one parametric direction is separated to new struct BSplCLib_CacheParams
- Empty constructors are removed; copying is prohibited
- Code reconsidering degree and other parameters on each call to BuildCache() is eliminated; curve parameters must be the same in constructor and all calls to BuildCache()
- Extra call to BuildCache() from constructor is eliminated
src/BSplCLib/BSplCLib_Cache.cxx
src/BSplCLib/BSplCLib_Cache.hxx
src/BSplCLib/BSplCLib_CacheParams.hxx [new file with mode: 0644]
src/BSplCLib/FILES
src/BSplSLib/BSplSLib_Cache.cxx
src/BSplSLib/BSplSLib_Cache.hxx
src/Geom2dAdaptor/Geom2dAdaptor_Curve.cxx
src/GeomAdaptor/GeomAdaptor_Curve.cxx
src/GeomAdaptor/GeomAdaptor_Surface.cxx