소스 검색

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 6 년 전
부모
커밋
bb5e41805a
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  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;
 }