Index: Source/core/html/DateTimeLocalInputType.cpp |
diff --git a/Source/core/html/DateTimeLocalInputType.cpp b/Source/core/html/DateTimeLocalInputType.cpp |
index 6ca3d549c8ae8c8686c043e3bc079ea8c48cb9f3..5edd420f1eab3d43aefef97d8b4df3d1f92e1d65 100644 |
--- a/Source/core/html/DateTimeLocalInputType.cpp |
+++ b/Source/core/html/DateTimeLocalInputType.cpp |
@@ -95,11 +95,11 @@ StepRange DateTimeLocalInputType::createStepRange(AnyStepHandling anyStepHandlin |
return StepRange(stepBase, minimum, maximum, step, stepDescription); |
} |
-bool DateTimeLocalInputType::parseToDateComponentsInternal(const UChar* characters, unsigned length, DateComponents* out) const |
+bool DateTimeLocalInputType::parseToDateComponentsInternal(const String& string, DateComponents* out) const |
{ |
ASSERT(out); |
unsigned end; |
- return out->parseDateTimeLocal(characters, length, 0, end) && end == length; |
+ return out->parseDateTimeLocal(string, 0, end) && end == string.length(); |
} |
bool DateTimeLocalInputType::setMillisecondToDateComponents(double value, DateComponents* date) const |