diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-11 00:16:40 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-17 20:13:23 +0100 |
| commit | d95eacd3851a20e52202465ec22b4f72a4983dc8 (patch) | |
| tree | 1dfc1092ae7d2e6b6b7c313ad808415f578d9712 /src/util.cc | |
| parent | cbee0d077e698541afcea82a95bafcea5245ab89 (diff) | |
Replace std::list with std::vector in the API.
Diffstat (limited to 'src/util.cc')
| -rw-r--r-- | src/util.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.cc b/src/util.cc index 133f6dc9..f775c507 100644 --- a/src/util.cc +++ b/src/util.cc @@ -66,11 +66,11 @@ using std::wstring; using std::cout; using std::min; using std::max; -using std::list; using std::setw; using std::setfill; using std::ostream; using std::shared_ptr; +using std::vector; using boost::shared_array; using boost::optional; using boost::function; @@ -440,7 +440,7 @@ dcp::day_greater_than_or_equal (LocalTime a, LocalTime b) * not in \ref existing. */ string -dcp::unique_string (list<string> existing, string base) +dcp::unique_string (vector<string> existing, string base) { int const max_tries = existing.size() + 1; for (int i = 0; i < max_tries; ++i) { |
