diff --git a/src/OpenFOAM/global/argList/argList.C b/src/OpenFOAM/global/argList/argList.C index 0640d3d731..b3937e4495 100644 --- a/src/OpenFOAM/global/argList/argList.C +++ b/src/OpenFOAM/global/argList/argList.C @@ -756,12 +756,7 @@ void Foam::argList::printNotes() const if (!notes.empty()) { Info<< nl; - for - ( - SLList::const_iterator iter = notes.begin(); - iter != notes.end(); - ++iter - ) + forAllConstIter(SLList, notes, iter) { Info<< iter().c_str() << nl; }