summaryrefslogtreecommitdiff
path: root/xfa/fgas
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-10-26 18:58:39 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-26 18:58:39 -0700
commit9f7f7f8773410020fbea2be87917591cddd86aab (patch)
tree875155af9bef6dea6b450747320d711863902a9e /xfa/fgas
parentf39074c0ae47a84c496782f8b75bcce1e1cfdf59 (diff)
downloadpdfium-9f7f7f8773410020fbea2be87917591cddd86aab.tar.xz
Fix some FX_BOOL / int noise in xfa
Review-Url: https://codereview.chromium.org/2453983002
Diffstat (limited to 'xfa/fgas')
-rw-r--r--xfa/fgas/localization/fgas_locale.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/xfa/fgas/localization/fgas_locale.cpp b/xfa/fgas/localization/fgas_locale.cpp
index 7393d58096..f8715fdf1c 100644
--- a/xfa/fgas/localization/fgas_locale.cpp
+++ b/xfa/fgas/localization/fgas_locale.cpp
@@ -2232,8 +2232,9 @@ static FX_BOOL FX_ParseLocaleDate(const CFX_WideString& wsDate,
CFX_Unitime ut;
ut.Set(year, month, day);
datetime = datetime + ut;
- return cc;
+ return !!cc;
}
+
static void FX_ResolveZone(uint8_t& wHour,
uint8_t& wMinute,
FX_TIMEZONE tzDiff,
@@ -2448,8 +2449,9 @@ static FX_BOOL FX_ParseLocaleTime(const CFX_WideString& wsTime,
CFX_Unitime ut;
ut.Set(0, 0, 0, hour, minute, second, millisecond);
datetime = datetime + ut;
- return cc;
+ return !!cc;
}
+
FX_BOOL CFX_FormatString::ParseDateTime(const CFX_WideString& wsSrcDateTime,
const CFX_WideString& wsPattern,
FX_DATETIMETYPE eDateTimeType,