summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-08-28 00:05:54 +0200
committerCarl Hetherington <cth@carlh.net>2020-09-21 21:57:18 +0200
commit140d631d7df68d47c36bd15558e9b58ef4038e27 (patch)
tree2fcc5571493dec4f983a91a9c8fb47c10fd5555b /src
parent0a8f009ceb86417704b2e2d2bb377c850d9e042e (diff)
Use vector for the Ratings list.
Diffstat (limited to 'src')
-rw-r--r--src/cpl.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cpl.h b/src/cpl.h
index ba1e8196..bb8975c9 100644
--- a/src/cpl.h
+++ b/src/cpl.h
@@ -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; ///< &lt;ContentTitleText&gt;
ContentKind _content_kind; ///< &lt;ContentKind&gt;
- std::list<Rating> _ratings;
std::vector<ContentVersion> _content_versions;
+ std::vector<Rating> _ratings;
std::list<boost::shared_ptr<Reel> > _reels;