From 1d9af6cc7df2a06ac707959722d254f8c4c3e02d Mon Sep 17 00:00:00 2001
From: Roberto Raggi <roberto.raggi@nokia.com>
Date: Fri, 20 Nov 2009 11:05:18 +0100
Subject: [PATCH] Removed the extra check for || when used together with &&.

---
 src/plugins/cppeditor/cppquickfix.cpp | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/plugins/cppeditor/cppquickfix.cpp b/src/plugins/cppeditor/cppquickfix.cpp
index 861e06a627e..1255de3bb36 100644
--- a/src/plugins/cppeditor/cppquickfix.cpp
+++ b/src/plugins/cppeditor/cppquickfix.cpp
@@ -406,8 +406,6 @@ public:
             if (binaryToken.is(T_AMPER_AMPER) || binaryToken.is(T_PIPE_PIPE)) {
                 if (contains(condition->binary_op_token))
                     return index;
-                if (binaryToken.is(T_PIPE_PIPE))
-                    return -1;
             } else {
                 return -1;
             }
-- 
GitLab