summaryrefslogtreecommitdiff
path: root/fxjs
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-12-01 22:52:42 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-12-01 22:52:42 +0000
commitb8d86800487df4021860f08407c323ed82243c79 (patch)
treeac91e7e9405cf47594316623b26a0aadd9544e79 /fxjs
parentdca380ffe0571be4023b11b06b8aecad9934bb06 (diff)
downloadpdfium-chromium/3284.tar.xz
Get rid of else after break/continue/return.chromium/3284chromium/3283
Change-Id: I3efc57cd7325d16e3ca8ebdeeaec06012b2c56e3 Reviewed-on: https://pdfium-review.googlesource.com/20110 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fxjs')
-rw-r--r--fxjs/cfxjse_resolveprocessor.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/fxjs/cfxjse_resolveprocessor.cpp b/fxjs/cfxjse_resolveprocessor.cpp
index ef0fcbf174..5dba39b25d 100644
--- a/fxjs/cfxjse_resolveprocessor.cpp
+++ b/fxjs/cfxjse_resolveprocessor.cpp
@@ -584,6 +584,7 @@ int32_t CFXJSE_ResolveProcessor::GetFilter(const WideStringView& wsExpression,
static_cast<XFA_HashCode>(FX_HashCode_GetW(wsName.AsStringView(), false));
return nStart;
}
+
void CFXJSE_ResolveProcessor::ConditionArray(int32_t iCurIndex,
WideString wsCondition,
int32_t iFoundCount,
@@ -594,18 +595,14 @@ void CFXJSE_ResolveProcessor::ConditionArray(int32_t iCurIndex,
int32_t i = 1;
for (; i < iLen; ++i) {
wchar_t ch = wsCondition[i];
- if (ch == ' ') {
+ if (ch == ' ')
continue;
- }
if (ch == '+' || ch == '-') {
bRelative = true;
- break;
} else if (ch == '*') {
bAll = true;
- break;
- } else {
- break;
}
+ break;
}
if (bAll) {
if (rnd.m_dwStyles & XFA_RESOLVENODE_CreateNode) {