Skip to content

Commit 7a2b05e

Browse files
nehebhassec
authored andcommitted
clang-tidy: use = default
Found with modernize-use-equals-default Signed-off-by: Rosen Penev <[email protected]>
1 parent e53548a commit 7a2b05e

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

include/exiv2/bmffimage.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ namespace Exiv2
4040
struct Iloc
4141
{
4242
Iloc(uint32_t ID = 0, uint32_t start = 0, uint32_t length = 0) : ID_(ID), start_(start), length_(length){};
43-
virtual ~Iloc(){};
43+
virtual ~Iloc() = default;
4444

4545
uint32_t ID_;
4646
uint32_t start_;

include/exiv2/error.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -366,10 +366,8 @@ namespace Exiv2 {
366366
setMsg();
367367
}
368368

369-
template<typename charT>
370-
BasicError<charT>::~BasicError() throw()
371-
{
372-
}
369+
template <typename charT>
370+
BasicError<charT>::~BasicError() throw() = default;
373371

374372
template<typename charT>
375373
int BasicError<charT>::code() const throw()

0 commit comments

Comments
 (0)