refactor: use C++11 default initializers

This commit is contained in:
fanquake 2022-05-11 16:02:15 +01:00
parent d5d40d59f8
commit 7aa40f5563
No known key found for this signature in database
GPG key ID: 2EEB9F5CC09526C1
39 changed files with 57 additions and 88 deletions

View file

@ -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) {