Skip to content

Commit

Permalink
Adapt to ROOT 6.31. See issue #1210
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusFrankATcernch committed Jan 12, 2024
1 parent ec1b92a commit a4ec9c5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 7 additions & 1 deletion DDCore/src/ShapeUtilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,14 @@ namespace dd4hep {
for(int i=0; i<num_facet; ++i) {
const TGeoFacet& f = sh->GetFacet(i);
pars.emplace_back(double(f.GetNvert()));
for(int j=0, n=f.GetNvert(); j<n; ++j)
for(int j=0, n=f.GetNvert(); j<n; ++j) {
#if ROOT_VERSION_CODE >= ROOT_VERSION(6,31,0)
int idx = f[j];
pars.emplace_back(double(idx));
#else
pars.emplace_back(double(f.GetVertexIndex(j)));
#endif
}
}
return pars;
}
Expand Down
3 changes: 1 addition & 2 deletions DDCore/src/Volumes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,8 @@ PlacedVolumeExtension::PlacedVolumeExtension()

/// Default move
PlacedVolumeExtension::PlacedVolumeExtension(PlacedVolumeExtension&& c)
: TGeoExtension(c), magic(move(c.magic)), refCount(0), volIDs() {
: TGeoExtension(c), magic(std::move(c.magic)), refCount(0), volIDs(std::move(c.volIDs)) {
INCREMENT_COUNTER;
volIDs = move(c.volIDs);
}

/// Copy constructor
Expand Down

0 comments on commit a4ec9c5

Please sign in to comment.