Commit d1d85a93 authored by zecke@webkit.org's avatar zecke@webkit.org

2008-04-16 Holger Hans Peter Freyther <zecke@selfish.org>

        Unreviewed build fix for gcc.

        ::msToGregorianDateTime  is not known to it.

        * kjs/date_object.cpp:
        (KJS::DateInstance::msToGregorianDateTime):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31940 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 5e626b00
2008-04-16 Holger Hans Peter Freyther <zecke@selfish.org>
Unreviewed build fix for gcc.
::msToGregorianDateTime is not known to it.
* kjs/date_object.cpp:
(KJS::DateInstance::msToGregorianDateTime):
2008-04-16 Alexey Proskuryakov <ap@webkit.org> 2008-04-16 Alexey Proskuryakov <ap@webkit.org>
Reviewed by Oliver Hunt. Reviewed by Oliver Hunt.
......
...@@ -346,13 +346,13 @@ void DateInstance::msToGregorianDateTime(double milli, bool outputIsUTC, Gregori ...@@ -346,13 +346,13 @@ void DateInstance::msToGregorianDateTime(double milli, bool outputIsUTC, Gregori
if (outputIsUTC) { if (outputIsUTC) {
if (m_cache->m_gregorianDateTimeUTCCachedForMS != milli) { if (m_cache->m_gregorianDateTimeUTCCachedForMS != milli) {
::msToGregorianDateTime(milli, true, m_cache->m_cachedGregorianDateTimeUTC); KJS::msToGregorianDateTime(milli, true, m_cache->m_cachedGregorianDateTimeUTC);
m_cache->m_gregorianDateTimeUTCCachedForMS = milli; m_cache->m_gregorianDateTimeUTCCachedForMS = milli;
} }
t.copyFrom(m_cache->m_cachedGregorianDateTimeUTC); t.copyFrom(m_cache->m_cachedGregorianDateTimeUTC);
} else { } else {
if (m_cache->m_gregorianDateTimeCachedForMS != milli) { if (m_cache->m_gregorianDateTimeCachedForMS != milli) {
::msToGregorianDateTime(milli, false, m_cache->m_cachedGregorianDateTime); KJS::msToGregorianDateTime(milli, false, m_cache->m_cachedGregorianDateTime);
m_cache->m_gregorianDateTimeCachedForMS = milli; m_cache->m_gregorianDateTimeCachedForMS = milli;
} }
t.copyFrom(m_cache->m_cachedGregorianDateTime); t.copyFrom(m_cache->m_cachedGregorianDateTime);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment