mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: avoid deprecation warnings for autoPtr set() method
- set() was silently deprecated in favour of reset() FEB-2018 since the original additional check for overwriting an existing pointer was never used. The reset(...) name is more consistent with unique_ptr, tmp etc. Now emit deprecations for set(). - use direct test for autoPtr, tmp instead of valid() method. More consistent with unique_ptr etc. STYLE: eliminate redundant ptr() use on cloned quantities
This commit is contained in:
@ -45,8 +45,8 @@ See also
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef tmp_H
|
||||
#define tmp_H
|
||||
#ifndef Foam_tmp_H
|
||||
#define Foam_tmp_H
|
||||
|
||||
#include "refCount.H"
|
||||
#include "word.H"
|
||||
@ -81,7 +81,7 @@ class tmp
|
||||
mutable refType type_;
|
||||
|
||||
|
||||
// Private Member Operators
|
||||
// Private Member Functions
|
||||
|
||||
//- Increment the ref-count for a managed pointer
|
||||
//- and check that it is not oversubscribed
|
||||
|
||||
Reference in New Issue
Block a user