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

@@ -12,7 +12,7 @@ namespace class_sh_basic {
struct atyp { // Short for "any type".
std::string mtxt;
atyp() : mtxt("DefaultConstructor") {}
atyp(const std::string &mtxt_) : mtxt(mtxt_) {}
explicit atyp(const std::string &mtxt_) : mtxt(mtxt_) {}
atyp(const atyp &other) { mtxt = other.mtxt + "_CpCtor"; }
atyp(atyp &&other) noexcept { mtxt = other.mtxt + "_MvCtor"; }
};