DiscussionsIssue archiveOCCT:Modeling Algorithms

Archived issue #0025711

Get rid of static variable islambdadefined in AppParCurves_BSpGradient.gxx

Open CASCADEOCCT:Modeling Algorithmsclosed9 public notes

Search issues

Description

The file AppParCurves_BSpGradient.gxx contains the static variable "islambdadefined" in global scope.
Analyzing the logic of its usage I came to conclusion that this can lead to usage of uninitialized fields mylambda1 and mylambda2 in the class AppParCurves_BSpFunction.
I suggest making this variable the field member (non-static) in the class AppParCurves_BSpGradient.

Steps to reproduce

not applicable

Public activity

9 archived notes

Participants are labeled by their role within this record.

01Commenter 2
Branch [archived branch] has been created by Participant.

[revision removed]


Detailed log of new commits:

Author: azv
Date: Fri Jan 16 10:32:51 2015 +0300

    0025711: Get rid of static variable islambdadefined in AppParCurves_BSpGradient.gxx
02Commenter 2
Branch CR25711 is ready for review.
03Commenter 3
myIsLambdaDefined: Real;
This field must be of type Boolean.
04Commenter 2
Branch [archived branch] has been updated forcibly by Participant.

[revision removed]
05Commenter 5
Sorry for misprint. The branch was updated.
06Commenter 6
Reviewed.
07Commenter 3
Branch will be tested with CR25706_2.
08Commenter 3
Rise CR25706_2.
09Commenter 2
Branch [archived branch] has been deleted by Participant.

[revision removed]