Skip to content

Commit

Permalink
Merge pull request #35795 from slava77/patch-107
Browse files Browse the repository at this point in the history
default initialize TrajectorySeed::dir_
  • Loading branch information
cmsbuild committed Oct 26, 2021
2 parents a0fbbb9 + 92f1195 commit ce8cd4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
@@ -1,6 +1,6 @@
#ifndef dataFormats_PropagationDirection_H
#define dataFormats_PropagationDirection_H

enum PropagationDirection { oppositeToMomentum, alongMomentum, anyDirection };
enum PropagationDirection { oppositeToMomentum, alongMomentum, anyDirection, invalidDirection };

#endif
2 changes: 1 addition & 1 deletion DataFormats/TrajectorySeed/interface/TrajectorySeed.h
Expand Up @@ -59,7 +59,7 @@ class TrajectorySeed {
private:
RecHitContainer hits_;
PTrajectoryStateOnDet tsos_;
PropagationDirection dir_;
PropagationDirection dir_ = invalidDirection;
};

inline void swap(TrajectorySeed& rh, TrajectorySeed& lh) noexcept { rh.swap(lh); }
Expand Down

0 comments on commit ce8cd4d

Please sign in to comment.