clang-tidy: add missing special member functions

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2022-05-21 17:06:36 -07:00
parent b4c90b5e16
commit a98954a98e
5 changed files with 12 additions and 1 deletions
+2
View File
@@ -97,8 +97,10 @@ class TaskFactory {
*/
static TaskFactory& instance();
~TaskFactory() = default;
//! Prevent copy construction: not implemented.
TaskFactory(const TaskFactory&) = delete;
TaskFactory& operator=(const TaskFactory&) = delete;
//! Destructor
void cleanup();
+2
View File
@@ -110,7 +110,9 @@ class Params : public Util::Getopt {
static Params& instance();
//! Prevent copy-construction: not implemented.
~Params() = default;
Params(const Params&) = delete;
Params& operator=(const Params&) = delete;
//! Enumerates print modes
enum PrintMode {
+1
View File
@@ -54,6 +54,7 @@ class EXIV2API WebPImage : public Image {
[[nodiscard]] std::string mimeType() const override;
//@}
~WebPImage() = default;
//! Copy constructor
WebPImage(const WebPImage&) = delete;
//! Assignment operator
+4
View File
@@ -330,6 +330,9 @@ class CiffDirectory : public CiffComponent {
~CiffDirectory() override;
//@}
CiffDirectory(const CiffDirectory&) = delete;
CiffDirectory& operator=(const CiffDirectory&) = delete;
//! @name Manipulators
//@{
// Default assignment operator is fine
@@ -522,6 +525,7 @@ struct CrwMapping {
*/
class CrwMap {
public:
~CrwMap() = delete;
//! @name Not implemented
//@{
CrwMap(const CrwMap&) = delete;
+3 -1
View File
@@ -81,8 +81,10 @@ class TiffMnCreator {
*/
static TiffComponent* create(uint16_t tag, IfdId group, IfdId mnGroup);
~TiffMnCreator() = default;
//! Prevent destruction (needed if used as a policy class)
~TiffMnCreator() = delete;
TiffMnCreator(const TiffComponent&) = delete;
TiffMnCreator& operator=(const TiffComponent&) = delete;
private:
static const TiffMnRegistry registry_[]; //<! List of makernotes