codedBase: Added support for '-' in entry names

by mapping '-' to '_' in the generation of the code name.

Resolves bug-report https://bugs.openfoam.org/view.php?id=3744
This commit is contained in:
Henry Weller
2021-10-24 11:38:55 +01:00
parent cdefd71521
commit ad28cb49b5
4 changed files with 7 additions and 6 deletions

View File

@ -367,7 +367,7 @@ Foam::codedBase::codedBase()
Foam::codedBase::codedBase(const word& name, const dictionary& dict)
:
codeName_(name),
codeName_(word(name).replaceAll("-", "_")),
dict_(dict)
{}