mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0024059: Eliminate compiler warning C4701 in MSVC++ with warning level 4
Removing pPotentially uninitialized local variable Got rid of most of warnings C4701: Potentially uninitialized local variable Removed redundant variable definitions. Refactored a part of AppParCurves_ResolConstraint CTOR. Replaced 0. to Precision::Confusion for tolerance vars; Changed values for min and max parameter vars; Got rid of redundant variables' initialization.
This commit is contained in:
@@ -522,7 +522,7 @@ gp_Pnt GeomAdaptor_Curve::Value(const Standard_Real U) const
|
||||
{
|
||||
if ( (myTypeCurve == GeomAbs_BSplineCurve)&&
|
||||
(U==myFirst || U==myLast) ) {
|
||||
Standard_Integer Ideb, Ifin;
|
||||
Standard_Integer Ideb = 0, Ifin = 0;
|
||||
if (U==myFirst) {
|
||||
myBspl->LocateU(myFirst, PosTol, Ideb, Ifin);
|
||||
if (Ideb<1) Ideb=1;
|
||||
@@ -547,7 +547,7 @@ void GeomAdaptor_Curve::D0(const Standard_Real U, gp_Pnt& P) const
|
||||
{
|
||||
if ( (myTypeCurve == GeomAbs_BSplineCurve)&&
|
||||
(U==myFirst || U==myLast) ) {
|
||||
Standard_Integer Ideb, Ifin;
|
||||
Standard_Integer Ideb = 0, Ifin = 0;
|
||||
if (U==myFirst) {
|
||||
myBspl->LocateU(myFirst, PosTol, Ideb, Ifin);
|
||||
if (Ideb<1) Ideb=1;
|
||||
@@ -574,7 +574,7 @@ void GeomAdaptor_Curve::D1(const Standard_Real U, gp_Pnt& P, gp_Vec& V) const
|
||||
{
|
||||
if ( (myTypeCurve == GeomAbs_BSplineCurve)&&
|
||||
(U==myFirst || U==myLast) ) {
|
||||
Standard_Integer Ideb, Ifin;
|
||||
Standard_Integer Ideb = 0, Ifin = 0;
|
||||
if (U==myFirst) {
|
||||
myBspl->LocateU(myFirst, PosTol, Ideb, Ifin);
|
||||
if (Ideb<1) Ideb=1;
|
||||
@@ -602,7 +602,7 @@ void GeomAdaptor_Curve::D2(const Standard_Real U,
|
||||
{
|
||||
if ( (myTypeCurve == GeomAbs_BSplineCurve)&&
|
||||
(U==myFirst || U==myLast) ) {
|
||||
Standard_Integer Ideb, Ifin;
|
||||
Standard_Integer Ideb = 0, Ifin = 0;
|
||||
if (U==myFirst) {
|
||||
myBspl->LocateU(myFirst, PosTol, Ideb, Ifin);
|
||||
if (Ideb<1) Ideb=1;
|
||||
@@ -631,7 +631,7 @@ void GeomAdaptor_Curve::D3(const Standard_Real U,
|
||||
{
|
||||
if ( (myTypeCurve == GeomAbs_BSplineCurve) &&
|
||||
(U==myFirst || U==myLast) ) {
|
||||
Standard_Integer Ideb, Ifin;
|
||||
Standard_Integer Ideb = 0, Ifin = 0;
|
||||
if (U==myFirst) {
|
||||
myBspl->LocateU(myFirst, PosTol, Ideb, Ifin);
|
||||
if (Ideb<1) Ideb=1;
|
||||
@@ -659,7 +659,7 @@ gp_Vec GeomAdaptor_Curve::DN(const Standard_Real U,
|
||||
{
|
||||
if ( (myTypeCurve == GeomAbs_BSplineCurve) &&
|
||||
(U==myFirst || U==myLast) ) {
|
||||
Standard_Integer Ideb, Ifin;
|
||||
Standard_Integer Ideb = 0, Ifin = 0;
|
||||
if (U==myFirst) {
|
||||
myBspl->LocateU(myFirst, PosTol, Ideb, Ifin);
|
||||
if (Ideb<1) Ideb=1;
|
||||
|
Reference in New Issue
Block a user