From 7a2b05e8135455bb0328e7862a371ceb4a64041c Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 10 Jun 2021 01:27:02 -0700 Subject: [PATCH] clang-tidy: use = default Found with modernize-use-equals-default Signed-off-by: Rosen Penev --- include/exiv2/bmffimage.hpp | 2 +- include/exiv2/error.hpp | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/include/exiv2/bmffimage.hpp b/include/exiv2/bmffimage.hpp index ff67e048..6039eb91 100644 --- a/include/exiv2/bmffimage.hpp +++ b/include/exiv2/bmffimage.hpp @@ -40,7 +40,7 @@ namespace Exiv2 struct Iloc { Iloc(uint32_t ID = 0, uint32_t start = 0, uint32_t length = 0) : ID_(ID), start_(start), length_(length){}; - virtual ~Iloc(){}; + virtual ~Iloc() = default; uint32_t ID_; uint32_t start_; diff --git a/include/exiv2/error.hpp b/include/exiv2/error.hpp index 18c9acd8..4c697502 100644 --- a/include/exiv2/error.hpp +++ b/include/exiv2/error.hpp @@ -366,10 +366,8 @@ namespace Exiv2 { setMsg(); } - template - BasicError::~BasicError() throw() - { - } + template + BasicError::~BasicError() throw() = default; template int BasicError::code() const throw()