mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 22:18:54 +01:00
refactor: use C++11 default initializers
This commit is contained in:
@@ -321,7 +321,7 @@ struct StringContentsSerializer {
|
||||
// Used to make two serialized objects the same while letting them have different lengths
|
||||
// This is a terrible idea
|
||||
std::string str;
|
||||
StringContentsSerializer() {}
|
||||
StringContentsSerializer() = default;
|
||||
explicit StringContentsSerializer(const std::string& inp) : str(inp) {}
|
||||
|
||||
StringContentsSerializer& operator+=(const std::string& s) {
|
||||
|
||||
Reference in New Issue
Block a user