STYLE: fix stray use of argList option() instead of []

This commit is contained in:
Mark Olesen 2017-11-09 18:59:55 +01:00
parent 166f62f19d
commit c51ee22101
3 changed files with 2 additions and 3 deletions

View File

@ -1599,7 +1599,7 @@ int main(int argc, char *argv[])
}
else if (useCellZonesFile)
{
const word zoneFile = args.option("cellZonesFileOnly");
const word zoneFile(args["cellZonesFileOnly"]);
Info<< "Reading split from cellZones file " << zoneFile << endl
<< "This requires all"
<< " cells to be in one and only one cellZone." << nl << endl;

View File

@ -181,7 +181,7 @@ int main(int argc, char *argv[])
if (args.optionFound("featureFile"))
{
const fileName featureFileName(args.option("featureFile"));
const fileName featureFileName(args["featureFile"]);
Info<< "Reading features from " << featureFileName << " ..." << endl;
edgeMesh feMesh(featureFileName);

View File

@ -341,7 +341,6 @@ public:
inline const string& operator[](const label index) const;
//- Return the argument string associated with the named option
// \sa option()
inline const string& operator[](const word& opt) const;