diff --git a/system/jlib/jstats.cpp b/system/jlib/jstats.cpp index 9daa4b671cc..810879112c5 100644 --- a/system/jlib/jstats.cpp +++ b/system/jlib/jstats.cpp @@ -1908,7 +1908,7 @@ class CStatisticCollection : public CInterfaceOf { friend class CollectionHashTable; - CStatisticCollection * ensureSubScopePath(std::initializer_list path) + CStatisticCollection * ensureSubScopePath(std::initializer_list & path) { CStatisticCollection * curScope = this; for (const auto & scopeItem: path) @@ -2242,7 +2242,7 @@ class CStatisticCollection : public CInterfaceOf ++scopeItem; } - CStatisticCollection * tgtScopeCollection = ensureSubScopePath(std::move(path)); + CStatisticCollection * tgtScopeCollection = ensureSubScopePath(path); bool wasUpdated = false; // More efficient to iterate over stats rather than mapping... ForEachItemIn(i, curSrcCollection->stats)