summaryrefslogtreecommitdiffstats
path: root/kjs/date_object.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
commit560378aaca1784ba19806a0414a32b20c744de39 (patch)
treece0dfd7c3febf2a1adc7603d1019a8be2083c415 /kjs/date_object.cpp
parentd4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff)
downloadtdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz
tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kjs/date_object.cpp')
-rw-r--r--kjs/date_object.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kjs/date_object.cpp b/kjs/date_object.cpp
index 26635611d..65be661f1 100644
--- a/kjs/date_object.cpp
+++ b/kjs/date_object.cpp
@@ -844,7 +844,7 @@ double KJS::makeTime(struct tm *t, double ms, bool utc)
}
// returns 0-11 (Jan-Dec); -1 on failure
-static int findMonth(const char *monthStr)
+static int tqfindMonth(const char *monthStr)
{
assert(monthStr);
static const char haystack[37] = "janfebmaraprmayjunjulaugsepoctnovdec";
@@ -911,7 +911,7 @@ double KJS::KRFCDate_parseDate(const UString &_date)
{
if (isSpaceLike(*dateString) && dateString - wordStart >= 3)
{
- month = findMonth(wordStart);
+ month = tqfindMonth(wordStart);
while(*dateString && isSpaceLike(*dateString))
dateString++;
wordStart = dateString;
@@ -921,7 +921,7 @@ double KJS::KRFCDate_parseDate(const UString &_date)
}
// missing delimiter between month and day (like "January29")?
if (month == -1 && dateString && wordStart != dateString) {
- month = findMonth(wordStart);
+ month = tqfindMonth(wordStart);
// TODO: emit warning about dubious format found
}
@@ -991,7 +991,7 @@ double KJS::KRFCDate_parseDate(const UString &_date)
if ( month == -1 ) // not found yet
{
- month = findMonth(dateString);
+ month = tqfindMonth(dateString);
if (month == -1)
return invalidDate;