refactor: decouple SmartPointer reference counting
This commit is contained in:
@@ -96,9 +96,7 @@ public:
|
||||
return m_Logical ? m_Logical->GetName().c_str() : m_Name.c_str();
|
||||
}
|
||||
|
||||
void SetSolid(Solid *solid) { m_Solid = solid; }
|
||||
void SetSolid(SmartPointer<Solid> solid) { m_Solid = solid; }
|
||||
void SetMaterial(Material *material) { m_Material = material; }
|
||||
void SetMaterial(SmartPointer<Material> material) { m_Material = material; }
|
||||
|
||||
G4LogicalVolume* GetG4LogicalVolume() const { return m_Logical; }
|
||||
@@ -210,7 +208,6 @@ public:
|
||||
|
||||
BoxSolid();
|
||||
BoxSolid(const char *name);
|
||||
BoxSolid(const char *name, ContainerBox *box);
|
||||
BoxSolid(const char *name, SmartPointer<ContainerBox> box);
|
||||
|
||||
virtual G4VSolid* GetG4Solid() const override { return (G4VSolid*)m_Solid; }
|
||||
|
||||
Reference in New Issue
Block a user