diff --git a/applications/test/DirLister/DirListerTemplates.C b/applications/test/DirLister/DirListerTemplates.C index 7de1216c63..2b7cf16905 100644 --- a/applications/test/DirLister/DirListerTemplates.C +++ b/applications/test/DirLister/DirListerTemplates.C @@ -76,10 +76,10 @@ Foam::List Foam::DirLister::csorted const bool prune ) const { - List list(list(pred, prune)); - Foam::sort(list, stringOps::natural_sort()); + List result(list(pred, prune)); + Foam::sort(result, stringOps::natural_sort()); - return list; + return result; } diff --git a/applications/test/DynamicList/Test-DynamicList.C b/applications/test/DynamicList/Test-DynamicList.C index ce6fb4b210..659bce8a98 100644 --- a/applications/test/DynamicList/Test-DynamicList.C +++ b/applications/test/DynamicList/Test-DynamicList.C @@ -248,7 +248,7 @@ int main(int argc, char *argv[]) addr.emplace_back(2); // Can also use the return value - Info<< "adding " << addr.emplace_back(4) << endl; + Info<< "adding " << addr.emplace_back(4) << nl; forAll(dlE2, i) { @@ -325,7 +325,7 @@ int main(int argc, char *argv[]) input1 = list2; - Info<< nl << "test subset/remove with " + Info<< nl << "test remove with " << flatOutput(input1) << endl; for @@ -344,11 +344,9 @@ int main(int argc, char *argv[]) list2 = input1; list1.remove(range); - list2.subset(range); Info<< "input = " << flatOutput(input1) << nl - << "remove " << range << " = " << flatOutput(list1) << nl - << "subset " << range << " = " << flatOutput(list2) << nl; + << "remove " << range << " = " << flatOutput(list1) << nl; } } diff --git a/applications/test/FixedList/Test-FixedList.C b/applications/test/FixedList/Test-FixedList.C index e7f4c4e7a8..ae4bbc995c 100644 --- a/applications/test/FixedList/Test-FixedList.C +++ b/applications/test/FixedList/Test-FixedList.C @@ -211,22 +211,6 @@ int main(int argc, char *argv[]) << " hash:" << Hash>()(list2) << nl; - // Test deprecated form - SLList