BUG: comparison to static end() for hashtable lookup.

- just use the iterator method found() as an alternative and
  convenient way to avoid the issue with less typing.
This commit is contained in:
Mark Olesen
2017-05-01 21:28:41 +02:00
parent dc57c016ae
commit 7cceda620d
4 changed files with 7 additions and 7 deletions

View File

@ -183,7 +183,7 @@ Foam::string& Foam::stringOps::inplaceExpand
HashTable<string, word, string::hash>::const_iterator fnd =
mapping.find(varName);
if (fnd != HashTable<string, word, string::hash>::end())
if (fnd.found())
{
if (altPos != string::npos && altType == '+')
{