diff --git a/Source/MediaStorageAndFileFormat/gdcmDPath.cxx b/Source/MediaStorageAndFileFormat/gdcmDPath.cxx index 23f8955d2..0666a741b 100644 --- a/Source/MediaStorageAndFileFormat/gdcmDPath.cxx +++ b/Source/MediaStorageAndFileFormat/gdcmDPath.cxx @@ -17,9 +17,9 @@ namespace gdcm { -DPath::DPath() {} +DPath::DPath() = default; -DPath::~DPath() {} +DPath::~DPath() = default; // LO mandates that '\\' is never used: static const char SEPARATOR = '\\'; diff --git a/Source/MessageExchangeDefinition/gdcmBaseQuery.cxx b/Source/MessageExchangeDefinition/gdcmBaseQuery.cxx index 1063e704c..3cb9ea9ac 100644 --- a/Source/MessageExchangeDefinition/gdcmBaseQuery.cxx +++ b/Source/MessageExchangeDefinition/gdcmBaseQuery.cxx @@ -49,14 +49,8 @@ passed to a c-find or c-move query. namespace gdcm { - BaseQuery::BaseQuery() - { - //nothing to do, really - } - BaseQuery::~BaseQuery() - { - //nothing to do, really - } + BaseQuery::BaseQuery() = default; + BaseQuery::~BaseQuery() = default; void BaseQuery::SetSearchParameter(const Tag& inTag, const DictEntry& inDictEntry, const std::string& inValue) { diff --git a/Testing/Source/MediaStorageAndFileFormat/Cxx/TestCleaner4.cxx b/Testing/Source/MediaStorageAndFileFormat/Cxx/TestCleaner4.cxx index eaafc73bc..702e9b370 100644 --- a/Testing/Source/MediaStorageAndFileFormat/Cxx/TestCleaner4.cxx +++ b/Testing/Source/MediaStorageAndFileFormat/Cxx/TestCleaner4.cxx @@ -54,7 +54,7 @@ static bool IsTagEmpty(const DataSet &ds, const T1 &path, const T2 &pt) { } // namespace gdcm struct TestCleaner4Impl { - virtual ~TestCleaner4Impl() {} + virtual ~TestCleaner4Impl() = default; virtual bool check_before(gdcm::DataSet &ds) = 0; virtual bool check_after(gdcm::DataSet &ds, bool preservePatientName) = 0; int run(std::string const &filename, std::string const &outfilename,