From bb172b77ef1416348fc370bc0537dbeaf5ffda63 Mon Sep 17 00:00:00 2001 From: Will Bainbridge Date: Fri, 25 Feb 2022 17:21:48 +0000 Subject: [PATCH] FixedList: Correction to comparison operators --- src/OpenFOAM/containers/Lists/FixedList/FixedList.C | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/OpenFOAM/containers/Lists/FixedList/FixedList.C b/src/OpenFOAM/containers/Lists/FixedList/FixedList.C index 8a9f607934..99e9633985 100644 --- a/src/OpenFOAM/containers/Lists/FixedList/FixedList.C +++ b/src/OpenFOAM/containers/Lists/FixedList/FixedList.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -87,14 +87,7 @@ bool Foam::FixedList::operator<(const FixedList& a) const } } - if (Size < a.Size) - { - return true; - } - else - { - return false; - } + return false; }