diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-08-28 00:05:54 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-09-21 21:57:18 +0200 |
| commit | 140d631d7df68d47c36bd15558e9b58ef4038e27 (patch) | |
| tree | 2fcc5571493dec4f983a91a9c8fb47c10fd5555b /src | |
| parent | 0a8f009ceb86417704b2e2d2bb377c850d9e042e (diff) | |
Use vector for the Ratings list.
Diffstat (limited to 'src')
| -rw-r--r-- | src/cpl.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -152,11 +152,11 @@ public: void set_content_versions (std::vector<ContentVersion> v); - std::list<Rating> ratings () const { + std::vector<Rating> ratings () const { return _ratings; } - void set_ratings (std::list<Rating> r) { + void set_ratings (std::vector<Rating> r) { _ratings = r; } @@ -177,8 +177,8 @@ private: std::string _annotation_text; std::string _content_title_text; ///< <ContentTitleText> ContentKind _content_kind; ///< <ContentKind> - std::list<Rating> _ratings; std::vector<ContentVersion> _content_versions; + std::vector<Rating> _ratings; std::list<boost::shared_ptr<Reel> > _reels; |
