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 13:59:22 +0000 (16:59 +0300)
commit0a96e0bbc4c529db4d0185c938df5b2a5d89f5c6
tree5e5aee77ab04b02249a4860d600bc6ab86db0826
parent3388cf17dc9ec97814180227f11e679c8b3d26ec
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