Skip to content
Snippets Groups Projects
Commit 642cf1e1 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

STYLE: endsWith() -> ends_with() for OpenFOAM-1912

- a silent change, but taken in advance of C++20
parent da201350
Branches
Tags
No related merge requests found
......@@ -5,7 +5,7 @@
\\ / A nd | www.openfoam.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2016-2019 OpenCFD Ltd.
Copyright (C) 2016-2020 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
......@@ -191,7 +191,7 @@ bool Foam::adiosFoam::regionControl::acceptFieldObject
(autoWrite() && obj.writeOpt() == IOobject::AUTO_WRITE)
|| requestedFields_.match(name)
)
&& !name.endsWith("_0") // ignore _0 fields
&& !name.ends_with("_0") // ignore _0 fields
);
}
......
......@@ -168,7 +168,7 @@ void Foam::adiosFoam::adiosReader::scan(bool verbose)
{
const fileName varName(iter->first);
if (varName.endsWith("_0"))
if (varName.ends_with("_0"))
{
// The "_0" fields are addressed separately
continue;
......
......@@ -5,7 +5,7 @@
\\ / A nd | www.openfoam.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2016-2019 OpenCFD Ltd.
Copyright (C) 2016-2020 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
......@@ -69,7 +69,7 @@ Foam::adiosFoam::adiosReader::getCloud
{
const fileName varName(iter->first);
if (varName.endsWith("_0"))
if (varName.ends_with("_0"))
{
// The "_0" fields are addressed separately
continue;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment