diff options
author | Sergey Magidovich <mgsergio@mapswithme.com> | 2017-06-21 13:13:36 +0300 |
---|---|---|
committer | Yuri Gorshenin <mipt.vi002@gmail.com> | 2017-07-05 16:41:38 +0300 |
commit | 6e4a15c49e05c88d9701279a1a3d024c0088feba (patch) | |
tree | 455e1321172406827738bfe934365dc3842c9dd0 /ugc/types.hpp | |
parent | a291aa1b62258dd1ee3200116e547db0de6f2ba7 (diff) |
Add dynamic ugc storage.
Diffstat (limited to 'ugc/types.hpp')
-rw-r--r-- | ugc/types.hpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ugc/types.hpp b/ugc/types.hpp index 32e4e2cd64..4c57f6ec52 100644 --- a/ugc/types.hpp +++ b/ugc/types.hpp @@ -271,25 +271,28 @@ struct UGC struct ReviewFeedback { + ReviewFeedback() = default; ReviewFeedback(Sentiment const sentiment, Time const & time) : m_sentiment(sentiment), m_time(time) { } - Sentiment m_sentiment; - Time m_time; + Sentiment m_sentiment{}; + Time m_time{}; }; struct ReviewAbuse { + ReviewAbuse() = default; ReviewAbuse(std::string const & reason, Time const & time) : m_reason(reason), m_time(time) {} - std::string m_reason; - Time m_time; + std::string m_reason{}; + Time m_time{}; }; struct UGCUpdate { + UGCUpdate() = default; UGCUpdate(Rating ratings, Attribute attribute, ReviewAbuse abuses, ReviewFeedback feedbacks) : m_ratings(ratings), m_attribute(attribute), m_abuses(abuses), m_feedbacks(feedbacks) { |