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

Unified Diff: third_party/WebKit/Source/platform/wtf/DateMath.cpp

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 years, 6 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: third_party/WebKit/Source/platform/wtf/DateMath.cpp
diff --git a/third_party/WebKit/Source/platform/wtf/DateMath.cpp b/third_party/WebKit/Source/platform/wtf/DateMath.cpp
index 479db49ed276f8943870aa0ed79fff984a80b19f..c5d3c869b98c883235185b87acf00e20fa9ef624 100644
--- a/third_party/WebKit/Source/platform/wtf/DateMath.cpp
+++ b/third_party/WebKit/Source/platform/wtf/DateMath.cpp
@@ -71,6 +71,12 @@
#include "platform/wtf/DateMath.h"
+#include <limits.h>
+#include <math.h>
+#include <stdlib.h>
+#include <time.h>
+#include <algorithm>
+#include <limits>
#include "platform/wtf/ASCIICType.h"
#include "platform/wtf/Assertions.h"
#include "platform/wtf/CurrentTime.h"
@@ -78,12 +84,6 @@
#include "platform/wtf/StdLibExtras.h"
#include "platform/wtf/StringExtras.h"
#include "platform/wtf/text/StringBuilder.h"
-#include <algorithm>
-#include <limits.h>
-#include <limits>
-#include <math.h>
-#include <stdlib.h>
-#include <time.h>
#if OS(WIN)
#include <windows.h>
@@ -738,7 +738,7 @@ static double ParseDateFromNullTerminatedCharacters(const char* date_string,
offset = ((o / 100) * 60 + (o % 100)) * sgn;
else
offset = o * 60 * sgn;
- } else { // GMT+05:00
+ } else { // GMT+05:00
++date_string; // skip the ':'
int o2;
if (!ParseInt(date_string, &new_pos_str, 10, &o2))

Powered by Google App Engine
This is Rietveld 408576698