From f2fae55aa16c52054eb1375dfcc2498fa23ba130 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 4 Jun 2024 01:11:15 +0100 Subject: Fix accumulator parameter type for pass-thru in AssetFactory::loadAll --- assetFactory/assetFactory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'assetFactory') 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); } -- cgit v1.2.3