projects
/
libdcp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support some different headers in private_key_fingerprint()
[libdcp.git]
/
src
/
ref.cc
diff --git
a/src/ref.cc
b/src/ref.cc
index 7512d32c45891341adebceb8ef7c04a79b437317..162012406e8c17127a71f78a75cc2399e077339c 100644
(file)
--- 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.
This file is part of libdcp.
@@
-31,19
+31,24
@@
files in the program, then also delete it here.
*/
files in the program, then also delete it here.
*/
+
+/** @file src/ref.cc
+ * @brief Ref class
+ */
+
+
#include "ref.h"
#include "ref.h"
-using std::list;
+
using std::shared_ptr;
using std::shared_ptr;
+using std::vector;
using namespace dcp;
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
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;
}
while (i != assets.end() && !ids_equal ((*i)->id(), _id)) {
++i;
}