From b8d86800487df4021860f08407c323ed82243c79 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 1 Dec 2017 22:52:42 +0000 Subject: Get rid of else after break/continue/return. Change-Id: I3efc57cd7325d16e3ca8ebdeeaec06012b2c56e3 Reviewed-on: https://pdfium-review.googlesource.com/20110 Reviewed-by: Henrique Nakashima Commit-Queue: Lei Zhang --- core/fpdfdoc/cpdf_variabletext.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'core/fpdfdoc/cpdf_variabletext.cpp') diff --git a/core/fpdfdoc/cpdf_variabletext.cpp b/core/fpdfdoc/cpdf_variabletext.cpp index 18aa95793f..82a8d6757b 100644 --- a/core/fpdfdoc/cpdf_variabletext.cpp +++ b/core/fpdfdoc/cpdf_variabletext.cpp @@ -897,15 +897,11 @@ float CPDF_VariableText::GetAutoFontSize() { int32_t nRight = nTotal - 1; int32_t nMid = nTotal / 2; while (nLeft <= nRight) { - if (IsBigger(gFontSizeSteps[nMid])) { + if (IsBigger(gFontSizeSteps[nMid])) nRight = nMid - 1; - nMid = (nLeft + nRight) / 2; - continue; - } else { + else nLeft = nMid + 1; - nMid = (nLeft + nRight) / 2; - continue; - } + nMid = (nLeft + nRight) / 2; } return (float)gFontSizeSteps[nMid]; } -- cgit v1.2.3