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;