From a63707cc59a7ac135534085b0ce4d069119bd4f5 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Sat, 16 Mar 2024 11:07:41 +1100 Subject: [PATCH] Update word_count.cpp --- source/utility/word_count.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/utility/word_count.cpp b/source/utility/word_count.cpp index 249cbce..dcc60c5 100644 --- a/source/utility/word_count.cpp +++ b/source/utility/word_count.cpp @@ -22,7 +22,7 @@ int main(int argc, char** argv) { auto assets = Root::singleton().assets(); auto countWordsInType = [&](String const& type, function countFunction, Maybe> filterFunction = {}, Maybe wordCountKey = {}) { - auto& files = assets->scanExtension(type).values(); + auto files = assets->scanExtension(type).values(); if (filterFunction) files.filter(*filterFunction); assets->queueJsons(files);