STYLE: mark compatibility level for keyword redirectType (issue #912)

- was replaced with "name" in 1706
This commit is contained in:
Mark Olesen
2018-07-05 09:26:26 +02:00
parent f3f30c94b4
commit f7dc92d744
12 changed files with 33 additions and 76 deletions

View File

@ -191,15 +191,7 @@ bool Foam::functionObjects::codedFunctionObject::read(const dictionary& dict)
{
functionObject::read(dict);
// Backward compatibility
if (dict.found("redirectType"))
{
dict.lookup("redirectType") >> name_;
}
else
{
dict.lookup("name") >> name_;
}
dict.readCompat<word>("name", {{"redirectType", 1706}}, name_);
const entry* dataPtr = dict.lookupEntryPtr
(