From 774f76fc66ae324c392b60a26aa123c87f2f877b Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Fri, 28 Sep 2018 14:37:22 +0100 Subject: [PATCH] primitives/one: Corrected return type of '+' and '-' operators --- src/OpenFOAM/primitives/one/oneI.H | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/OpenFOAM/primitives/one/oneI.H b/src/OpenFOAM/primitives/one/oneI.H index 5be4bc3f88..de5a67b89a 100644 --- a/src/OpenFOAM/primitives/one/oneI.H +++ b/src/OpenFOAM/primitives/one/oneI.H @@ -42,25 +42,25 @@ public: }; template -inline const Type& operator+(const Type& t, const one&) +inline Type operator+(const Type& t, const one&) { return t + 1; } template -inline const Type& operator+(const one&, const Type& t) +inline Type operator+(const one&, const Type& t) { return 1 + t; } template -inline const Type& operator-(const Type& t, const one&) +inline Type operator-(const Type& t, const one&) { return t - 1; } template -inline const Type& operator-(const one&, const Type& t) +inline Type operator-(const one&, const Type& t) { return 1 - t; }