Skip to content

Commit 60a181e

Browse files
committed
fixed compilation warning with the new Geant4 11.3
1 parent aca061d commit 60a181e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SimG4Core/Geometry/src/CMSG4CheckOverlap.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,11 @@ void CMSG4CheckOverlap::makeReportForMaterials(std::ofstream& fout) {
121121
<< "\n";
122122
fout << "ElementsDump:"
123123
<< "\n";
124-
G4ElementTable* elmtab = G4Element::GetElementTable();
124+
const auto elmtab = G4Element::GetElementTable();
125125
fout << *elmtab;
126126
fout << "====================================================================="
127127
<< "\n";
128-
G4MaterialTable* mattab = G4Material::GetMaterialTable();
128+
const auto mattab = G4Material::GetMaterialTable();
129129
fout << "MaterialsDump:"
130130
<< "\n";
131131
//fout << *mattab << "\n";

0 commit comments

Comments
 (0)