Skip to content

Commit

Permalink
Used clang-tidy to auto-apply modernize-use-equals-default fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
seanm authored and malaterre committed Apr 4, 2023
1 parent 3d46d81 commit 62dee5f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Source/MediaStorageAndFileFormat/gdcmDPath.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '\\';
Expand Down
10 changes: 2 additions & 8 deletions Source/MessageExchangeDefinition/gdcmBaseQuery.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 62dee5f

Please sign in to comment.