From 54d746f7f32e3172c52ef255489b67e2e79b8449 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20Traizet?= <cedric.traizet@c-s.fr>
Date: Tue, 28 Jul 2020 16:19:46 +0200
Subject: [PATCH] ENH: inherits constructors instead of redefining them

---
 .../include/otbMetadataSupplierInterface.h       | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)

diff --git a/Modules/Core/Metadata/include/otbMetadataSupplierInterface.h b/Modules/Core/Metadata/include/otbMetadataSupplierInterface.h
index 3efc3ef8e5..f982721057 100644
--- a/Modules/Core/Metadata/include/otbMetadataSupplierInterface.h
+++ b/Modules/Core/Metadata/include/otbMetadataSupplierInterface.h
@@ -40,21 +40,7 @@ public:
   itkTypeMacro(MissingMetadataException, itk::ExceptionObject);
 
   /** Constructor. */
-  MissingMetadataException(const char* file, unsigned int line, const char* message = "Missing metadata", const char* loc = "Unknown")
-    : itk::ExceptionObject(file, line, message, loc)
-  {
-  }
-
-  /** Constructor. */
-  MissingMetadataException(const std::string& file, unsigned int line, const char* message = "Missing metadata", const char* loc = "Unknown")
-    : itk::ExceptionObject(file, line, message, loc)
-  {
-  }
-
-  MissingMetadataException(const std::string& file, unsigned int line, const std::string& message = "Missing metadata", const char* loc = "Unknown")
-    : itk::ExceptionObject(file, line, message, loc)
-  {
-  }
+  using itk::ExceptionObject::ExceptionObject;
 };
 
 /** \class MetadataSupplierInterface
-- 
GitLab