Skip to content
Snippets Groups Projects
Commit 59bfbb95 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

ENH: simpler, more consistent checks for tmp validity (#1775)

- Previously considered to be valid() if it was any reference
  (null or non-null) or a non-null pointer.

  This appears to be a holdover from old code (pre-2015) where
  reinterpret_cast<..>(0) was used instead of the NullObject.

  A reference via a null pointer isn't really possible anywhere. Even
  for things like labelList::null(), they now use the NullObject,
  which has a non-zero memory location.

- now simply check for a non-zero memory address. Regardless of
  pointer or referenced object.
parent d282d1a2
1 merge request!378autoPtr/tmp cleanup
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment