STYLE: ensure that emptyLabelList is known from List.H

- treat as a List constant without requiring inclusion of ListOps.H

- replace use of emptyList<label>() with emptyLabelList directly.
  The emptyList<T>() casting is disallowed with many modern compilers
  and now marked as deprecated (expect early removal).

- relocate labelList typedef to List.H for more general access.
  Similar reasoning to having labelUList defined in UList.H
This commit is contained in:
Mark Olesen
2018-08-01 21:27:46 +02:00
parent edb0d1dd97
commit d8c0167ea8
8 changed files with 26 additions and 13 deletions

View File

@ -2398,7 +2398,7 @@ const Foam::labelList& Foam::dynamicIndexedOctree<Type>::findIndices
return *(contents_[getContent(contentIndex)]);
}
return emptyList<label>();
return Foam::emptyLabelList;
}