From 6d224ffdfc24754190035d8b6dcfa80096b33f02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Onur=20=C3=9Clgen?= Date: Wed, 12 Jun 2024 21:23:10 +0100 Subject: [PATCH] Fix linting issues --- niftyreg_build_version.txt | 2 +- reg-lib/ComputeFactory.h | 1 + reg-lib/ContentCreatorFactory.h | 2 ++ reg-lib/MeasureCreatorFactory.hpp | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/niftyreg_build_version.txt b/niftyreg_build_version.txt index 9f51d082..d2a1e59f 100644 --- a/niftyreg_build_version.txt +++ b/niftyreg_build_version.txt @@ -1 +1 @@ -426 +427 diff --git a/reg-lib/ComputeFactory.h b/reg-lib/ComputeFactory.h index 426e1d1f..8c37125d 100644 --- a/reg-lib/ComputeFactory.h +++ b/reg-lib/ComputeFactory.h @@ -4,5 +4,6 @@ class ComputeFactory { public: + virtual ~ComputeFactory() = default; virtual Compute* Produce(Content& con) { return new Compute(con); } }; diff --git a/reg-lib/ContentCreatorFactory.h b/reg-lib/ContentCreatorFactory.h index 4d9ddddc..3200bdd7 100644 --- a/reg-lib/ContentCreatorFactory.h +++ b/reg-lib/ContentCreatorFactory.h @@ -10,6 +10,8 @@ enum class ContentType { Base, Aladin, Def, F3d, F3d2 }; class ContentCreatorFactory { public: + virtual ~ContentCreatorFactory() = default; + virtual ContentCreator* Produce(const ContentType conType) { switch (conType) { case ContentType::Base: diff --git a/reg-lib/MeasureCreatorFactory.hpp b/reg-lib/MeasureCreatorFactory.hpp index d51b6db1..d44d584e 100644 --- a/reg-lib/MeasureCreatorFactory.hpp +++ b/reg-lib/MeasureCreatorFactory.hpp @@ -4,5 +4,6 @@ class MeasureCreatorFactory { public: + virtual ~MeasureCreatorFactory() = default; virtual MeasureCreator* Produce() { return new MeasureCreator(); } };