mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-09 18:50:54 +03:00
0032677: Coding Rules, Geom_BezierSurface - eliminate GCC warning -Wmaybe-uninitialized -fsanitize=undefined
Fixed initialization of TColStd_Array1OfReal for weights.
This commit is contained in:
parent
7ac3f543c7
commit
d62df471b2
@ -739,14 +739,12 @@ void Geom_BezierSurface::InsertPoleRowAfter (const Standard_Integer UIndex,
|
|||||||
|
|
||||||
Handle(TColStd_HArray2OfReal) nweights;
|
Handle(TColStd_HArray2OfReal) nweights;
|
||||||
|
|
||||||
if (urational || vrational) {
|
if (urational || vrational)
|
||||||
nweights =
|
{
|
||||||
new TColStd_HArray2OfReal(1,poles->ColLength()+1,1,poles->RowLength());
|
nweights = new TColStd_HArray2OfReal(1,poles->ColLength()+1,1,poles->RowLength());
|
||||||
|
|
||||||
// TColStd_Array1OfReal CWeights(nweights->LowerCol(),nweights->UpperCol(),
|
TColStd_Array1OfReal CWeights (nweights->LowerCol(), nweights->UpperCol());
|
||||||
// 1.0); ???????????
|
CWeights.Init (1.0);
|
||||||
TColStd_Array1OfReal CWeights(1.0,
|
|
||||||
nweights->LowerCol(),nweights->UpperCol());
|
|
||||||
|
|
||||||
AddRatPoleRow (poles->Array2(), weights->Array2(),
|
AddRatPoleRow (poles->Array2(), weights->Array2(),
|
||||||
CPoles, CWeights, UIndex,
|
CPoles, CWeights, UIndex,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user