From 53a4cb991922b1cb0543c27fc3c46ec50e06400c Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 16 Jul 2020 20:47:41 +0200 Subject: [PATCH] PVS: V501 There are identical sub-expressions to the left and to the right --- src/App/Expression.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App/Expression.cpp b/src/App/Expression.cpp index b8c58d6d2c..37fe58ce71 100644 --- a/src/App/Expression.cpp +++ b/src/App/Expression.cpp @@ -2991,7 +2991,7 @@ Range RangeExpression::getRange() const { auto c1 = stringToAddress(begin.c_str(),true); auto c2 = stringToAddress(end.c_str(),true); - if(c1.isValid() && c1.isValid()) + if(c1.isValid() && c2.isValid()) return Range(c1,c2); Base::PyGILStateLocker lock;