[smart_holder] clang-tidy fixes (related to recent clang-tidy changes on master). (#3053)

* clang-tidy fixes (related to recent clang-tidy changes on master).

* More clang-tidy fixes.
This commit is contained in:
Ralf W. Grosse-Kunstleve
2021-06-21 12:40:10 -07:00
committed by GitHub
parent 274b014578
commit 8d1e0b3903
5 changed files with 9 additions and 9 deletions

View File

@@ -25,7 +25,7 @@ struct uconsumer { // unique_ptr consumer
void pass_rref(std::unique_ptr<atyp> &&obj) { held = std::move(obj); }
std::unique_ptr<atyp> rtrn_valu() { return std::move(held); }
std::unique_ptr<atyp> &rtrn_lref() { return held; }
const std::unique_ptr<atyp> &rtrn_cref() { return held; }
const std::unique_ptr<atyp> &rtrn_cref() const { return held; }
};
// clang-format off