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:
Mark Olesen
2019-08-30 12:50:45 +02:00
committed by Andrew Heather
parent 07fb19e9d8
commit 9bb48cc37a

View File

@ -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