1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-03 14:10:33 +03:00

0026042: OCCT won't work with the latest Xcode

Dereferenced null pointers was eliminated for PLib, BSplCLib and BSplSLib. All affected code was changed accordingly.
This commit is contained in:
akz
2015-09-23 16:31:15 +03:00
committed by bugmaster
parent 42a9dcfc64
commit 0e14656b30
53 changed files with 867 additions and 906 deletions

View File

@@ -194,8 +194,8 @@ void Approx_MCurvesToBSpCurve::Perform
Inc = deg-mydegre;
TColgp_Array1OfPnt Points(1, deg+1);
if (Inc > 0) {
BSplCLib::IncreaseDegree(deg, ThePoles, PLib::NoWeights(),
Points, PLib::NoWeights());
BSplCLib::IncreaseDegree(deg, ThePoles, BSplCLib::NoWeights(),
Points, BSplCLib::NoWeights());
}
else {
Points = ThePoles;
@@ -215,8 +215,8 @@ void Approx_MCurvesToBSpCurve::Perform
Inc = deg-mydegre;
TColgp_Array1OfPnt2d Points2d(1, deg+1);
if (Inc > 0) {
BSplCLib::IncreaseDegree(deg, ThePoles2d, PLib::NoWeights(),
Points2d, PLib::NoWeights());
BSplCLib::IncreaseDegree(deg, ThePoles2d, BSplCLib::NoWeights(),
Points2d, BSplCLib::NoWeights());
}
else {
Points2d = ThePoles2d;