summaryrefslogtreecommitdiff
path: root/ucb
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
parent6d77d7db8704327071b3d46508310c8453cf1cd1 (diff)
loplugin:stringconstant
Change-Id: I95765e9c26e393a838ee0c617fde415e6c50e884
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/webdav/DateTimeHelper.cxx24
-rw-r--r--ucb/source/ucp/webdav/SerfUri.cxx2
-rw-r--r--ucb/source/ucp/webdav/webdavcontent.cxx4
-rw-r--r--ucb/source/ucp/webdav/webdavprovider.cxx2
-rw-r--r--ucb/source/ucp/webdav/webdavresponseparser.cxx7
5 files changed, 20 insertions, 19 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;
diff --git a/ucb/source/ucp/webdav/SerfUri.cxx b/ucb/source/ucp/webdav/SerfUri.cxx
index df299338667e..894765580eba 100644
--- a/ucb/source/ucp/webdav/SerfUri.cxx
+++ b/ucb/source/ucp/webdav/SerfUri.cxx
@@ -202,7 +202,7 @@ OUString SerfUri::GetPathBaseNameUnescaped () const
void SerfUri::AppendPath (const OUString& rPath)
{
if (mPath.lastIndexOf ('/') != mPath.getLength () - 1)
- mPath += OUString("/");
+ mPath += "/";
mPath += rPath;
calculateURI ();
diff --git a/ucb/source/ucp/webdav/webdavcontent.cxx b/ucb/source/ucp/webdav/webdavcontent.cxx
index 861b1750f945..c61511b14044 100644
--- a/ucb/source/ucp/webdav/webdavcontent.cxx
+++ b/ucb/source/ucp/webdav/webdavcontent.cxx
@@ -1134,7 +1134,7 @@ Content::queryCreatableContentsInfo()
uno::Sequence< ucb::ContentInfo > aSeq( 2 );
// document.
- aSeq.getArray()[ 0 ].Type = OUString( WEBDAV_CONTENT_TYPE );
+ aSeq.getArray()[ 0 ].Type = WEBDAV_CONTENT_TYPE;
aSeq.getArray()[ 0 ].Attributes
= ucb::ContentInfoAttribute::INSERT_WITH_INPUTSTREAM
| ucb::ContentInfoAttribute::KIND_DOCUMENT;
@@ -1148,7 +1148,7 @@ Content::queryCreatableContentsInfo()
aSeq.getArray()[ 0 ].Properties = aDocProps;
// folder.
- aSeq.getArray()[ 1 ].Type = OUString( WEBDAV_COLLECTION_TYPE );
+ aSeq.getArray()[ 1 ].Type = WEBDAV_COLLECTION_TYPE;
aSeq.getArray()[ 1 ].Attributes
= ucb::ContentInfoAttribute::KIND_FOLDER;
diff --git a/ucb/source/ucp/webdav/webdavprovider.cxx b/ucb/source/ucp/webdav/webdavprovider.cxx
index 16684d8d8bfa..e485d0e40cca 100644
--- a/ucb/source/ucp/webdav/webdavprovider.cxx
+++ b/ucb/source/ucp/webdav/webdavprovider.cxx
@@ -94,7 +94,7 @@ XTYPEPROVIDER_IMPL_3( ContentProvider,
XSERVICEINFO_IMPL_1_CTX( ContentProvider,
OUString( "com.sun.star.comp.WebDAVContentProvider" ),
- OUString( WEBDAV_CONTENT_PROVIDER_SERVICE_NAME ) );
+ WEBDAV_CONTENT_PROVIDER_SERVICE_NAME );
diff --git a/ucb/source/ucp/webdav/webdavresponseparser.cxx b/ucb/source/ucp/webdav/webdavresponseparser.cxx
index f513f1eb5c83..95a451b72eac 100644
--- a/ucb/source/ucp/webdav/webdavresponseparser.cxx
+++ b/ucb/source/ucp/webdav/webdavresponseparser.cxx
@@ -230,7 +230,7 @@ namespace
void WebDAVContext::splitName(const OUString& rSource)
{
const sal_Int32 nLen(rSource.getLength());
- maNamespace = "";
+ maNamespace.clear();
maName = rSource;
if(nLen)
@@ -457,7 +457,8 @@ namespace
case WebDAVName_response:
{
// response start, reset Href and status and maResponseProperties
- maHref = maStatus = "";
+ maHref.clear();
+ maStatus.clear();
if(isCollectingProperties())
{
@@ -807,7 +808,7 @@ namespace
if(aNew.getLength())
{
// add one char when appending (see html1.1 spec)
- aNew += OUString(' ');
+ aNew += " ";
}
aNew += aTrimmedChars;