summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/webdav/DateTimeHelper.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-07-27 09:01:38 +0200
committerNoel Grandin <noel@peralex.com>2015-07-27 09:24:07 +0200
commit3e4c5a3538843bbab5d94e431f9cdb6e394c17c5 (patch)
treee5d81374db56a4256263dcc77ad68919f128f917 /ucb/source/ucp/webdav/DateTimeHelper.cxx
parent6d77d7db8704327071b3d46508310c8453cf1cd1 (diff)
loplugin:stringconstant
Change-Id: I95765e9c26e393a838ee0c617fde415e6c50e884
Diffstat (limited to 'ucb/source/ucp/webdav/DateTimeHelper.cxx')
-rw-r--r--ucb/source/ucp/webdav/DateTimeHelper.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/ucb/source/ucp/webdav/DateTimeHelper.cxx b/ucb/source/ucp/webdav/DateTimeHelper.cxx
index 961c2332e977..b2e39be6218f 100644
--- a/ucb/source/ucp/webdav/DateTimeHelper.cxx
+++ b/ucb/source/ucp/webdav/DateTimeHelper.cxx
@@ -127,29 +127,29 @@ sal_Int32 DateTimeHelper::convertDayToInt (const OUString& day)
sal_Int32 DateTimeHelper::convertMonthToInt (const OUString& month)
{
- if (month.equalsAscii("Jan"))
+ if (month == "Jan")
return 1;
- else if (month.equalsAscii("Feb"))
+ else if (month == "Feb")
return 2;
- else if (month.equalsAscii("Mar"))
+ else if (month == "Mar")
return 3;
- else if (month.equalsAscii("Apr"))
+ else if (month == "Apr")
return 4;
- else if (month.equalsAscii("May"))
+ else if (month == "May")
return 5;
- else if (month.equalsAscii("Jun"))
+ else if (month == "Jun")
return 6;
- else if (month.equalsAscii("Jul"))
+ else if (month == "Jul")
return 7;
- else if (month.equalsAscii("Aug"))
+ else if (month == "Aug")
return 8;
- else if (month.equalsAscii("Sep"))
+ else if (month == "Sep")
return 9;
- else if (month.equalsAscii("Oct"))
+ else if (month == "Oct")
return 10;
- else if (month.equalsAscii("Nov"))
+ else if (month == "Nov")
return 11;
- else if (month.equalsAscii("Dec"))
+ else if (month == "Dec")
return 12;
else
return 0;