Ver Fonte

HdfFile: replace empty destructor with explicitly defaulted function
(clang-tidy modernize-use-equals-default)

https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-equals-default.html

Fabian Peter Hammerle há 6 anos atrás
pai
commit
bb5e41805a
1 ficheiros alterados com 1 adições e 2 exclusões
  1. 1 2
      lib/HdfFile.cpp

+ 1 - 2
lib/HdfFile.cpp

@@ -58,8 +58,7 @@ hdf4cpp::HdfFile &hdf4cpp::HdfFile::operator=(HdfFile &&file) {
     file.sId = file.vId = FAIL;
     return *this;
 }
-hdf4cpp::HdfFile::~HdfFile() {
-}
+hdf4cpp::HdfFile::~HdfFile() = default;
 int32 hdf4cpp::HdfFile::getSId() const {
     return sId;
 }