Commit a0b8bc36 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[2726] Use initializer list

Instead of assignment in the copy constructor.
parent c855ce32
......@@ -188,12 +188,12 @@ public:
/// \brief The copy constructor.
///
/// Trivial for now, we could've used the default one.
DSLikeImpl(const DSLikeImpl& source) {
digest_ = source.digest_;
tag_ = source.tag_;
algorithm_ = source.algorithm_;
digest_type_ = source.digest_type_;
}
DSLikeImpl(const DSLikeImpl& source) :
tag_(source.tag_),
algorithm_(source.algorithm_),
digest_type_(source.digest_type_),
digest_(source.digest_)
{}
/// \brief Convert the DS-like data to a string.
///
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment