From aec8bac3130c3c11333978b89c9fc5cf586c9bd0 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Sun, 1 Apr 2012 20:25:33 +0200 Subject: [PATCH] Style: Don't put an else after a return. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I41d031d92489e5539f293c30a6257310f2a1c657 Reviewed-by: Jędrzej Nowacki --- src/corelib/kernel/qvariant.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/corelib/kernel/qvariant.cpp b/src/corelib/kernel/qvariant.cpp index c3f8422b28..654170fabb 100644 --- a/src/corelib/kernel/qvariant.cpp +++ b/src/corelib/kernel/qvariant.cpp @@ -2503,8 +2503,7 @@ bool QVariant::canConvert(int targetTypeId) const if (targetTypeId == String && currentType == StringList) return v_cast(&d)->count() == 1; - else - return qCanConvertMatrix[targetTypeId] & (1 << currentType); + return qCanConvertMatrix[targetTypeId] & (1 << currentType); } /*!