openfoam/applications/test/dictionaryTokens
Mark Olesen 9af3f85cf9 STYLE: simplify short-circuit involving autoPtr (#1775)
- with '&&' conditions, often better to check for non-null autoPtr
  first (it is cheap)

- check as bool instead of valid() method for cleaner code, especially
  when the wrapped item itself has a valid/empty or good.
  Also when handling multiple checks.

  Now
      if (ptr && ptr->valid())
      if (ptr1 || ptr2)

  instead
      if (ptr.valid() && ptr->valid())
      if (ptr1.valid() || ptr2.valid())
2020-07-16 10:17:25 +02:00
..
Make ENH: add a test dictionary token streaming class 2017-11-07 13:12:43 +01:00
dictionaryTokens.C STYLE: simplify short-circuit involving autoPtr (#1775) 2020-07-16 10:17:25 +02:00
dictionaryTokens.H GIT: Header file updates 2019-10-31 14:48:44 +00:00
Test-dictionaryTokens.C GIT: Header file updates 2019-10-31 14:48:44 +00:00