Title: [123314] trunk/Source/WebCore
- Revision
- 123314
- Author
- [email protected]
- Date
- 2012-07-23 01:24:22 -0700 (Mon, 23 Jul 2012)
Log Message
Replace getCurrentLocalTime() with GetLocalTime() in LocaleWin.cpp
https://bugs.webkit.org/show_bug.cgi?id=91937
Reviewed by Ryosuke Niwa.
The windows function returns the required year directly and
removes one additonal dependecy on getCurrentLocalTime().
* platform/text/LocaleWin.cpp:
(WebCore::LocaleWin::LocaleWin):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (123313 => 123314)
--- trunk/Source/WebCore/ChangeLog 2012-07-23 08:18:54 UTC (rev 123313)
+++ trunk/Source/WebCore/ChangeLog 2012-07-23 08:24:22 UTC (rev 123314)
@@ -1,3 +1,16 @@
+2012-07-23 Patrick Gansterer <[email protected]>
+
+ Replace getCurrentLocalTime() with GetLocalTime() in LocaleWin.cpp
+ https://bugs.webkit.org/show_bug.cgi?id=91937
+
+ Reviewed by Ryosuke Niwa.
+
+ The windows function returns the required year directly and
+ removes one additonal dependecy on getCurrentLocalTime().
+
+ * platform/text/LocaleWin.cpp:
+ (WebCore::LocaleWin::LocaleWin):
+
2012-07-23 Vsevolod Vlasov <[email protected]>
Web Inspector: Drag and drop should not be started on right mouse click.
Modified: trunk/Source/WebCore/platform/text/LocaleWin.cpp (123313 => 123314)
--- trunk/Source/WebCore/platform/text/LocaleWin.cpp 2012-07-23 08:18:54 UTC (rev 123313)
+++ trunk/Source/WebCore/platform/text/LocaleWin.cpp 2012-07-23 08:24:22 UTC (rev 123314)
@@ -57,9 +57,9 @@
inline LocaleWin::LocaleWin(LCID lcid)
: m_lcid(lcid)
{
- struct tm tm;
- getCurrentLocalTime(&tm);
- m_baseYear = tm.tm_year + 1900;
+ SYSTEMTIME systemTime;
+ GetLocalTime(&systemTime);
+ m_baseYear = systemTime.wYear;
#if ENABLE(CALENDAR_PICKER)
DWORD value = 0;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes