Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(428)

Unified Diff: xfa/fgas/localization/fgas_locale.cpp

Issue 2000073003: Clean up more XFA code which causes warnings (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: xfa/fgas/localization/fgas_locale.cpp
diff --git a/xfa/fgas/localization/fgas_locale.cpp b/xfa/fgas/localization/fgas_locale.cpp
index 6eed202643be560631cae32223e267e1b11b953f..f0d1066397a220a0e644fcffba08abd151c22c48 100644
--- a/xfa/fgas/localization/fgas_locale.cpp
+++ b/xfa/fgas/localization/fgas_locale.cpp
@@ -3655,9 +3655,8 @@ FX_BOOL FX_TimeFromCanonical(const CFX_WideStringC& wsTime,
}
millisecond = millisecond * 10 + str[cc++] - '0';
}
- if (cc < cc_start + 3 || millisecond >= 1000) {
+ if (cc < cc_start + 3)
Tom Sepez 2016/05/23 16:57:54 wow ... was there some compiler smart enough to kn
Wei Li 2016/05/23 17:10:44 Yes, GCC wants to optimize this away. It is not th
return FALSE;
- }
}
if (cc < len) {
FX_TIMEZONE tzDiff;

Powered by Google App Engine
This is Rietveld 408576698