summaryrefslogtreecommitdiff
path: root/assetFactory/assetFactory.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-06-04 01:11:15 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2024-06-04 01:11:15 +0100
commitf2fae55aa16c52054eb1375dfcc2498fa23ba130 (patch)
tree7acbec0784b4dd55b7cbca4d0f748e7c3b0bbda9 /assetFactory/assetFactory.cpp
parentRemove fscanf and fixed buffers from AssetFactory::parseX11RGB (diff)
downloadilt-f2fae55aa16c52054eb1375dfcc2498fa23ba130.tar.bz2
ilt-f2fae55aa16c52054eb1375dfcc2498fa23ba130.tar.xz
ilt-f2fae55aa16c52054eb1375dfcc2498fa23ba130.zip
Fix accumulator parameter type for pass-thru in AssetFactory::loadAll
Diffstat (limited to 'assetFactory/assetFactory.cpp')
-rw-r--r--assetFactory/assetFactory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/assetFactory/assetFactory.cpp b/assetFactory/assetFactory.cpp
index fe4e0be..0f35937 100644
--- a/assetFactory/assetFactory.cpp
+++ b/assetFactory/assetFactory.cpp
@@ -35,7 +35,7 @@ AssetFactory::Assets
AssetFactory::loadAll(const std::filesystem::path & root)
{
return std::accumulate(std::filesystem::recursive_directory_iterator {root},
- std::filesystem::recursive_directory_iterator {}, Assets {}, [](auto && out, auto && path) {
+ std::filesystem::recursive_directory_iterator {}, Assets {}, [](auto out, const auto & path) {
if (path.path().extension() == ".xml") {
out.merge(loadXML(path)->assets);
}