Import Geant4 11.1.0.beta source tree
This commit is contained in:
@@ -103,9 +103,11 @@ aScintillationTIAllocator();
|
||||
|
||||
inline void* G4ScintillationTrackInformation::operator new(size_t)
|
||||
{
|
||||
if(!aScintillationTIAllocator())
|
||||
if(aScintillationTIAllocator() == nullptr)
|
||||
{
|
||||
aScintillationTIAllocator() =
|
||||
new G4Allocator<G4ScintillationTrackInformation>;
|
||||
}
|
||||
return (void*) aScintillationTIAllocator()->MallocSingle();
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ class G4VTRModel
|
||||
explicit G4VTRModel(const G4String& modelName) { fName = modelName; };
|
||||
|
||||
// Destructor
|
||||
virtual ~G4VTRModel(){};
|
||||
virtual ~G4VTRModel() = default;
|
||||
|
||||
const G4String& GetName() const { return fName; };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user