mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: replace keyType with wordRe for matching selectors.
- The keyType is primarily used within dictionary reading, whereas wordRe and wordRes are used for selectors in code. Unifying on wordRe and wordRes reduces the number matching options.
This commit is contained in:
committed by
Andrew Heather
parent
95cd8ee75c
commit
2b7b3700c2
@ -59,11 +59,9 @@ static inline void writeEntryIfPresent
|
||||
)
|
||||
{
|
||||
const entry* eptr = dict.findEntry(key, keyType::LITERAL);
|
||||
|
||||
if (eptr)
|
||||
{
|
||||
const tokenList& toks = eptr->stream();
|
||||
|
||||
if (!toks.empty())
|
||||
{
|
||||
os.writeEntry(key, toks[0]);
|
||||
|
||||
Reference in New Issue
Block a user