openfoam/applications/utilities/mesh
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
..
advanced GIT: remove leading/trailing blank lines, trailing whitespace 2020-06-17 10:46:26 +02:00
conversion GIT: remove leading/trailing blank lines, trailing whitespace 2020-06-17 10:46:26 +02:00
doc GIT: remove leading/trailing blank lines, trailing whitespace 2020-06-17 10:46:26 +02:00
generation STYLE: simplify short-circuit involving autoPtr (#1775) 2020-07-16 10:17:25 +02:00
manipulation STYLE: simplify short-circuit involving autoPtr (#1775) 2020-07-16 10:17:25 +02:00