mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
refactor: use C++11 default initializers
This commit is contained in:
parent
d5d40d59f8
commit
7aa40f5563
39 changed files with 57 additions and 88 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue