mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: also accept reading fileName as wordToken
- should have been part of commit 9d36d3c08a
which allows us to upcast a word to a fileName.
This commit is contained in:
committed by
Andrew Heather
parent
07fb19e9d8
commit
9bb48cc37a
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2018 OpenCFD Ltd.
|
||||
\\ / A nd | Copyright (C) 2018-2019 OpenCFD Ltd.
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
| Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||
@ -51,8 +51,9 @@ Foam::Istream& Foam::operator>>(Istream& is, fileName& val)
|
||||
return is;
|
||||
}
|
||||
|
||||
if (t.isString())
|
||||
if (t.isStringType())
|
||||
{
|
||||
// Also accept a plain word as a fileName
|
||||
val = t.stringToken();
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user