clang-tidy fixes related to PR #3250

This commit is contained in:
Ralf W. Grosse-Kunstleve
2021-09-08 19:42:56 -07:00
parent 94a5c673bc
commit b4e1ac9a94
8 changed files with 19 additions and 11 deletions

View File

@@ -9,7 +9,7 @@ namespace helpers {
struct movable_int {
int valu;
movable_int(int v) : valu{v} {}
explicit movable_int(int v) : valu{v} {}
movable_int(movable_int &&other) noexcept {
valu = other.valu;
other.valu = 91;
@@ -26,7 +26,7 @@ struct functor_other_delete : functor_builtin_delete<T> {};
struct indestructible_int {
int valu;
indestructible_int(int v) : valu{v} {}
explicit indestructible_int(int v) : valu{v} {}
private:
~indestructible_int() = default;