Skip to content

Commit

Permalink
clang-tidy: use delete
Browse files Browse the repository at this point in the history
Found with modernize-use-equals-delete

Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb committed Jan 9, 2024
1 parent 2a104e8 commit 15c143f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions modules/bindbackend/bindbackend2.hh
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ private:

handle();

handle(const handle&) = delete;
handle& operator=(const handle&) = delete; // don't go copying this

shared_ptr<const recordstorage_t> d_records;
recordstorage_t::index<UnorderedNameTag>::type::const_iterator d_iter, d_end_iter;

Expand All @@ -274,9 +277,6 @@ private:
private:
bool get_normal(DNSResourceRecord&);
bool get_list(DNSResourceRecord&);

void operator=(const handle&); // don't go copying this
handle(const handle&);
};

unique_ptr<SSqlStatement> d_getAllDomainMetadataQuery_stmt;
Expand Down
6 changes: 3 additions & 3 deletions modules/ldapbackend/powerldap.hh
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ public:
int d_msgid;
bool d_finished;

SearchResult(const SearchResult& other);
SearchResult& operator=(const SearchResult& other);

public:
typedef std::unique_ptr<SearchResult> Ptr;

SearchResult(const SearchResult& other) = delete;
SearchResult& operator=(const SearchResult& other) = delete;

SearchResult(int msgid, LDAP* ld);
~SearchResult();

Expand Down
5 changes: 3 additions & 2 deletions pdns/dynmessenger.hh
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ class DynMessenger

struct sockaddr_un d_remote; // our remote address

DynMessenger(const DynMessenger &); // NOT IMPLEMENTED

public:
// CREATORS

Expand All @@ -54,6 +52,9 @@ public:
int timeout_sec = 7,
int timeout_usec = 0); //!< Create a DynMessenger sending to this file

DynMessenger(const DynMessenger&) = delete; // NOT IMPLEMENTED
DynMessenger& operator=(const DynMessenger&) = delete; // NOT IMPLEMENTED

~DynMessenger();

// ACCESSORS
Expand Down

0 comments on commit 15c143f

Please sign in to comment.