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

Unified Diff: third_party/WebKit/Source/core/html/forms/TypeAhead.cpp

Issue 2942273002: Avoid some static initializers in Windows builds (Closed)
Patch Set: Use constexpr [] instead of constexpr const * 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/core/html/forms/TypeAhead.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/TypeAhead.cpp b/third_party/WebKit/Source/core/html/forms/TypeAhead.cpp
index 32b2a559bd73e4ac4da373398b532ee40017e92b..cc3db9c6221168da2435477396102b5e69c2efb1 100644
--- a/third_party/WebKit/Source/core/html/forms/TypeAhead.cpp
+++ b/third_party/WebKit/Source/core/html/forms/TypeAhead.cpp
@@ -37,7 +37,7 @@ namespace blink {
TypeAhead::TypeAhead(TypeAheadDataSource* data_source)
: data_source_(data_source), repeating_char_(0) {}
-static const TimeDelta kTypeAheadTimeout = TimeDelta::FromSecondsD(1);
+constexpr TimeDelta kTypeAheadTimeout = TimeDelta::FromSecondsD(1);
static String StripLeadingWhiteSpace(const String& string) {
unsigned length = string.length();
« no previous file with comments | « content/renderer/input/main_thread_event_queue.cc ('k') | third_party/WebKit/Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698