From c51ee22101d2a5d682261d08c30dd36f6dd25875 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Thu, 9 Nov 2017 18:59:55 +0100 Subject: [PATCH] STYLE: fix stray use of argList option() instead of [] --- .../mesh/manipulation/splitMeshRegions/splitMeshRegions.C | 2 +- .../surface/surfaceLambdaMuSmooth/surfaceLambdaMuSmooth.C | 2 +- src/OpenFOAM/global/argList/argList.H | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/applications/utilities/mesh/manipulation/splitMeshRegions/splitMeshRegions.C b/applications/utilities/mesh/manipulation/splitMeshRegions/splitMeshRegions.C index 14692cac4c..5326981c9b 100644 --- a/applications/utilities/mesh/manipulation/splitMeshRegions/splitMeshRegions.C +++ b/applications/utilities/mesh/manipulation/splitMeshRegions/splitMeshRegions.C @@ -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; diff --git a/applications/utilities/surface/surfaceLambdaMuSmooth/surfaceLambdaMuSmooth.C b/applications/utilities/surface/surfaceLambdaMuSmooth/surfaceLambdaMuSmooth.C index e7006475c7..538fb2ccee 100644 --- a/applications/utilities/surface/surfaceLambdaMuSmooth/surfaceLambdaMuSmooth.C +++ b/applications/utilities/surface/surfaceLambdaMuSmooth/surfaceLambdaMuSmooth.C @@ -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); diff --git a/src/OpenFOAM/global/argList/argList.H b/src/OpenFOAM/global/argList/argList.H index 89ac6c6385..171bdb7ffb 100644 --- a/src/OpenFOAM/global/argList/argList.H +++ b/src/OpenFOAM/global/argList/argList.H @@ -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;