Skip to content

Commit

Permalink
Removed a function local static in SeedCleanerByHitPosition::good
Browse files Browse the repository at this point in the history
The static analyzer complained about a non-const static being used in SeedCleanerByHitPosition::good.
The static was an instance of RecHitComparatorByPostion which is a class with no member data. Therefore
making it static didn't do anything useful. Removed the static and made it const just to make its use
clear.
  • Loading branch information
Dr15Jones committed Dec 19, 2013
1 parent a8a5a63 commit c874c15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RecoTracker/CkfPattern/src/SeedCleanerByHitPosition.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ void SeedCleanerByHitPosition::done() {
trajectories = 0;
}
bool SeedCleanerByHitPosition::good(const TrajectorySeed *seed) {
static RecHitComparatorByPosition comp;
const RecHitComparatorByPosition comp;
typedef TrajectorySeed::const_iterator SI;
typedef Trajectory::RecHitContainer::const_iterator TI;
TrajectorySeed::range range = seed->recHits();
Expand Down

0 comments on commit c874c15

Please sign in to comment.