Skip to content

Commit

Permalink
Fix may be used uninitialized
Browse files Browse the repository at this point in the history
  • Loading branch information
cmsbuild committed Oct 17, 2023
1 parent 9fb1e71 commit 0243e41
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace {
} // namespace

TkPixelMeasurementDet::TkPixelMeasurementDet(const GeomDet* gdet, PxMeasurementConditionSet& conditions)
: MeasurementDet(gdet), theDetConditions(&conditions) {
: MeasurementDet(gdet), index_(0), theDetConditions(&conditions) {
if (dynamic_cast<const PixelGeomDetUnit*>(gdet) == nullptr) {
throw MeasurementDetException("TkPixelMeasurementDet constructed with a GeomDet which is not a PixelGeomDetUnit");
}
Expand Down
1 change: 0 additions & 1 deletion RecoTracker/MeasurementDet/plugins/TkPixelMeasurementDet.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ class dso_hidden TkPixelMeasurementDet final : public MeasurementDet {
void setIndex(int i) { index_ = i; }

private:
unsigned int id_;
std::vector<LocalPoint> badRocPositions_;

int index_;
Expand Down

0 comments on commit 0243e41

Please sign in to comment.