dynamicCode: Renamed 'redirectType' to 'name' to clarify the purpose

of the entry which is to provide the name of the generated class.

'redirectType' is supported for backward-compatibility.
This commit is contained in:
Henry Weller
2016-05-18 23:10:42 +01:00
parent 7af20fd9db
commit 83c7e97655
18 changed files with 117 additions and 85 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -280,7 +280,7 @@ void Foam::codedBase::createLibrary
void Foam::codedBase::updateLibrary
(
const word& redirectType
const word& name
) const
{
const dictionary& dict = this->codeDict();
@ -293,12 +293,12 @@ void Foam::codedBase::updateLibrary
dynamicCodeContext context(dict);
// codeName: redirectType + _<sha1>
// codeDir : redirectType
// codeName: name + _<sha1>
// codeDir : name
dynamicCode dynCode
(
redirectType + context.sha1().str(true),
redirectType
name + context.sha1().str(true),
name
);
const fileName libPath = dynCode.libPath();