Skip to content

Commit

Permalink
Mark the DataHandle and DataWrapper destructors with override (#263)
Browse files Browse the repository at this point in the history
* Mark the DataHandle and DataWrapper destructor with override

* Remove virtual

Co-authored-by: jmcarcell <[email protected]>
Co-authored-by: Mateusz Jakub Fila <[email protected]>
  • Loading branch information
3 people authored Dec 9, 2024
1 parent 46c148a commit 7a9b961
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion k4FWCore/include/k4FWCore/DataHandle.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ template <typename T> class DataHandle : public DataObjectHandle<DataWrapper<T>>

public:
DataHandle();
~DataHandle();
~DataHandle() override;

/// Initialises mother class
DataHandle(DataObjID& descriptor, Gaudi::DataHandle::Mode a, IDataHandleHolder* fatherAlg);
Expand Down
3 changes: 1 addition & 2 deletions k4FWCore/include/k4FWCore/DataWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

#include <type_traits>

// Include files
#include "GaudiKernel/DataObject.h"
#include "podio/CollectionBase.h"

Expand Down Expand Up @@ -50,7 +49,7 @@ template <class T> class GAUDI_API DataWrapper : public DataWrapperBase {
uptr.release();
is_owner = false;
}
virtual ~DataWrapper();
~DataWrapper() override;

const T* getData() const { return m_data; }
void setData(const T* data) { m_data = data; }
Expand Down

0 comments on commit 7a9b961

Please sign in to comment.