Skip to content

Commit

Permalink
IrtGeo: mark destructor as virtual (#462)
Browse files Browse the repository at this point in the history
```
src/services/geometry/rich/RichGeo_service.cc:73:18: warning: delete called on 'rich::IrtGeo' that is abstract but has non-virtual destructor [-Wdelete-abstract-non-virtual-dtor]
    if(m_irtGeo) delete m_irtGeo;
                 ^
```
  • Loading branch information
veprbl authored Feb 5, 2023
1 parent 5145daa commit 686fd83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/geometry/rich/richgeo/IrtGeo.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace rich {
IrtGeo(std::string detName_, dd4hep::Detector *det_, bool verbose_=false);
// alternate constructor: use compact file for DD4hep geometry (backward compatibility)
IrtGeo(std::string detName_, std::string compactFile_="", bool verbose_=false);
~IrtGeo();
virtual ~IrtGeo();

// access the full IRT geometry
CherenkovDetectorCollection *GetIrtDetectorCollection() { return m_irtDetectorCollection; }
Expand Down

0 comments on commit 686fd83

Please sign in to comment.