BUG: sortedToc: reference to copy. Fixes #2554

This commit is contained in:
mattijs 2022-08-03 15:05:25 +01:00
parent 542fc0c1d1
commit 77ecc4c6e0

View File

@ -152,7 +152,7 @@ void Foam::PrintTable<KeyType, DataType>::print
os << endl;
const List<KeyType>& sortedTable = combinedTable.sortedToc();
const List<KeyType> sortedTable(combinedTable.sortedToc());
forAll(sortedTable, keyI)
{