Skip to content

Commit

Permalink
changes following review
Browse files Browse the repository at this point in the history
Signed-off-by: Shamser Ahmed <[email protected]>
  • Loading branch information
shamser committed Jan 6, 2025
1 parent 085868d commit 26ed341
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/jlib/jstats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1908,7 +1908,7 @@ class CStatisticCollection : public CInterfaceOf<IStatisticCollection>
{
friend class CollectionHashTable;

CStatisticCollection * ensureSubScopePath(std::initializer_list<const StatsScopeId> path)
CStatisticCollection * ensureSubScopePath(std::initializer_list<const StatsScopeId> & path)
{
CStatisticCollection * curScope = this;
for (const auto & scopeItem: path)
Expand Down Expand Up @@ -2242,7 +2242,7 @@ class CStatisticCollection : public CInterfaceOf<IStatisticCollection>
++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)
Expand Down

0 comments on commit 26ed341

Please sign in to comment.