clang-tidy: add explicit deleted constructors

Found with cppcoreguidelines-special-member-functions

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2021-05-30 22:46:50 -07:00
parent 9ef1cf15a9
commit 220d2bf026
30 changed files with 98 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ class UpnpNeighborExplorer final
:name(std::move(_name)), comment(std::move(_comment)),
alive(true) {}
Server(const Server &) = delete;
Server &operator=(const Server &) = delete;
gcc_pure
bool operator==(const Server &other) const noexcept {