Skip to content

Commit a254b79

Browse files
authored
Merge pull request #46269 from Dr15Jones/fixPerigeeTrajectoryError
Initialize member data in PerigeeTrajectoryError
2 parents 2956d12 + 64256ba commit a254b79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TrackingTools/TrajectoryParametrization/interface/PerigeeTrajectoryError.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class PerigeeTrajectoryError {
2020
PerigeeTrajectoryError(AlgebraicSymMatrix aPerigeeError):
2121
thePerigeeError(asSMatrix<5>(aPerigeeError)), weightIsAvailable(false) {}
2222
*/
23-
PerigeeTrajectoryError(const AlgebraicSymMatrix55 &aPerigeeError)
23+
explicit PerigeeTrajectoryError(const AlgebraicSymMatrix55 &aPerigeeError)
2424
: thePerigeeError(aPerigeeError), weightIsAvailable(false) {}
2525

2626
/**
@@ -71,6 +71,6 @@ class PerigeeTrajectoryError {
7171
AlgebraicSymMatrix55 thePerigeeError;
7272
mutable AlgebraicSymMatrix55 thePerigeeWeight;
7373
mutable int inverseError;
74-
mutable bool weightIsAvailable;
74+
mutable bool weightIsAvailable = false;
7575
};
7676
#endif

0 commit comments

Comments
 (0)