STYLE: use new argList argRead() method and operator[] for cleaner code.

- deprecate argList::additionalArgs() method and remove uses of it
This commit is contained in:
Mark Olesen
2010-02-16 17:57:49 +01:00
parent 51039eab00
commit d857d671ac
97 changed files with 341 additions and 395 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
\\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -98,14 +98,11 @@ int main(int argc, char *argv[])
);
argList args(argc, argv);
fileName surfFileName(args.additionalArgs()[0]);
Info<< "Reading surf from " << surfFileName << " ..." << endl;
fileName outFileName(args.additionalArgs()[1]);
Info<< "Writing surf to " << outFileName << " ..." << endl;
const fileName surfFileName = args[1];
const fileName outFileName = args[2];
Info<< "Reading surf from " << surfFileName << " ..." << nl
<< "Writing surf to " << outFileName << " ..." << endl;
if (args.options().empty())
{