Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/DikesDesign/SurfaceLineAdapter.cs =================================================================== diff -u -r6404 -r7077 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators/DikesDesign/SurfaceLineAdapter.cs (.../SurfaceLineAdapter.cs) (revision 6404) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/DikesDesign/SurfaceLineAdapter.cs (.../SurfaceLineAdapter.cs) (revision 7077) @@ -1,4 +1,4 @@ -// Copyright (C) Stichting Deltares 2025. All rights reserved. +// Copyright (C) Stichting Deltares 2026. All rights reserved. // // This file is part of the Dam Engine. // @@ -49,7 +49,7 @@ /// public abstract class SurfaceLineAdapter { - const double offset = 100.0; + private const double offset = 100.0; protected readonly Location Location; protected readonly SurfaceLine2 surfaceLine; @@ -201,8 +201,7 @@ { // The new point is equal to ShoulderTopInside. So remove that, add a normal point at its location // and remove all points between the top and the new point. - CharacteristicPoint toBeRemoved = surfaceLine.CharacteristicPoints.FirstOrDefault( - cp => cp.CharacteristicPointType == CharacteristicPointType.ShoulderTopInside); + CharacteristicPoint toBeRemoved = surfaceLine.CharacteristicPoints.FirstOrDefault(cp => cp.CharacteristicPointType == CharacteristicPointType.ShoulderTopInside); if (toBeRemoved != null) { surfaceLine.CharacteristicPoints.Remove(toBeRemoved); @@ -389,7 +388,7 @@ Point2D pointDikeTopAtRiver = surfaceLine.CharacteristicPoints.GetPoint2D(CharacteristicPointType.DikeTopAtRiver); Point2D pointDikeTopAtPolder = surfaceLine.CharacteristicPoints.GetPoint2D(CharacteristicPointType.DikeTopAtPolder); - hasTrafficLoad = ((pointTrafficLoadInside != null) && (pointTrafficLoadOutside != null)); + hasTrafficLoad = (pointTrafficLoadInside != null) && (pointTrafficLoadOutside != null); if (hasTrafficLoad) { trafficLoadOffsetXfromRiverside = pointTrafficLoadOutside.X - pointDikeTopAtRiver.X;