clang-tidy: add missing special member functions
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user