summaryrefslogtreecommitdiff
path: root/src/lib/config.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-09-17 01:34:49 +0200
committerCarl Hetherington <cth@carlh.net>2023-09-17 01:34:49 +0200
commitab09ee044d9342a9b294dff79469e89abd61748e (patch)
treee60c1cefd99600bb807211df330a7346c086f469 /src/lib/config.cc
parent9b136976921bc7bcb7d681cf9bbc68da1d479487 (diff)
list -> vector in Config::templates().
Diffstat (limited to 'src/lib/config.cc')
-rw-r--r--src/lib/config.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/config.cc b/src/lib/config.cc
index 9bb7fccf7..44aa51dc5 100644
--- a/src/lib/config.cc
+++ b/src/lib/config.cc
@@ -1393,20 +1393,21 @@ Config::save_template (shared_ptr<const Film> film, string name) const
}
-list<string>
+vector<string>
Config::templates () const
{
if (!boost::filesystem::exists(read_path("templates"))) {
return {};
}
- list<string> n;
+ vector<string> n;
for (auto const& i: boost::filesystem::directory_iterator(read_path("templates"))) {
n.push_back (i.path().filename().string());
}
return n;
}
+
bool
Config::existing_template (string name) const
{