COMP: tag lookupObjectPtr and lookupObjectRefPtr as deprecated

- were deprecated via comments (2018-10).
  Now mark with compilation warning
This commit is contained in:
Mark Olesen
2020-05-01 16:42:55 +02:00
parent 0c163e40e5
commit 0680416b59
9 changed files with 28 additions and 25 deletions

View File

@ -5,7 +5,7 @@
\\ / A nd | www.openfoam.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2018 OpenCFD Ltd.
Copyright (C) 2018-2020 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -172,7 +172,7 @@ bool Foam::functionObjects::columnAverage::write()
{
const word resultName("columnAverage(" + fieldName + ")");
const regIOobject* obj =
obr_.lookupObjectPtr<regIOobject>(averageName(fieldName));
obr_.cfindObject<regIOobject>(averageName(fieldName));
if (obj)
{