Skip to content

Commit

Permalink
Fix clang warnings by adding final
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Sep 1, 2023
1 parent acff8e5 commit f720211
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions k4FWCore/include/k4FWCore/PodioDataSvc.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ class PodioDataSvc : public DataSvc {
public:
typedef std::vector<std::pair<std::string, podio::CollectionBase*>> CollRegistry;

virtual StatusCode initialize();
virtual StatusCode reinitialize();
virtual StatusCode finalize();
virtual StatusCode clearStore();
virtual StatusCode i_setRoot(std::string root_path, IOpaqueAddress* pRootAddr);
virtual StatusCode i_setRoot(std::string root_path, DataObject* pRootObj);
StatusCode initialize() final;
StatusCode reinitialize() final;
StatusCode finalize() final;
StatusCode clearStore() final;
StatusCode i_setRoot(std::string root_path, IOpaqueAddress* pRootAddr) final;
StatusCode i_setRoot(std::string root_path, DataObject* pRootObj) final;

/// Standard Constructor
PodioDataSvc(const std::string& name, ISvcLocator* svc);
Expand Down
8 changes: 4 additions & 4 deletions k4FWCore/include/k4FWCore/PodioLegacyDataSvc.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ class PodioLegacyDataSvc : public DataSvc {
public:
typedef std::vector<std::pair<std::string, podio::CollectionBase*>> CollRegistry;

virtual StatusCode initialize();
virtual StatusCode reinitialize();
virtual StatusCode finalize();
virtual StatusCode clearStore();
StatusCode initialize() final;
StatusCode reinitialize() final;
StatusCode finalize() final;
StatusCode clearStore() final;

/// Standard Constructor
PodioLegacyDataSvc(const std::string& name, ISvcLocator* svc);
Expand Down

0 comments on commit f720211

Please sign in to comment.