summaryrefslogtreecommitdiff
path: root/src/ref.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-01-11 00:16:40 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-17 20:13:23 +0100
commitd95eacd3851a20e52202465ec22b4f72a4983dc8 (patch)
tree1dfc1092ae7d2e6b6b7c313ad808415f578d9712 /src/ref.cc
parentcbee0d077e698541afcea82a95bafcea5245ab89 (diff)
Replace std::list with std::vector in the API.
Diffstat (limited to 'src/ref.cc')
-rw-r--r--src/ref.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ref.cc b/src/ref.cc
index 7512d32c..8527150d 100644
--- a/src/ref.cc
+++ b/src/ref.cc
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2015 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2015-2021 Carl Hetherington <cth@carlh.net>
This file is part of libdcp.
@@ -33,17 +33,17 @@
#include "ref.h"
-using std::list;
using std::shared_ptr;
+using std::vector;
using namespace dcp;
/** Look through a list of assets and copy a shared_ptr to any asset
* which matches the ID of this one.
*/
void
-Ref::resolve (list<shared_ptr<Asset> > assets)
+Ref::resolve (vector<shared_ptr<Asset>> assets)
{
- list<shared_ptr<Asset> >::iterator i = assets.begin();
+ auto i = assets.begin();
while (i != assets.end() && !ids_equal ((*i)->id(), _id)) {
++i;
}