Kaydet (Commit) 3e4c5a35 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:stringconstant

Change-Id: I95765e9c26e393a838ee0c617fde415e6c50e884
üst 6d77d7db
...@@ -127,29 +127,29 @@ sal_Int32 DateTimeHelper::convertDayToInt (const OUString& day) ...@@ -127,29 +127,29 @@ sal_Int32 DateTimeHelper::convertDayToInt (const OUString& day)
sal_Int32 DateTimeHelper::convertMonthToInt (const OUString& month) sal_Int32 DateTimeHelper::convertMonthToInt (const OUString& month)
{ {
if (month.equalsAscii("Jan")) if (month == "Jan")
return 1; return 1;
else if (month.equalsAscii("Feb")) else if (month == "Feb")
return 2; return 2;
else if (month.equalsAscii("Mar")) else if (month == "Mar")
return 3; return 3;
else if (month.equalsAscii("Apr")) else if (month == "Apr")
return 4; return 4;
else if (month.equalsAscii("May")) else if (month == "May")
return 5; return 5;
else if (month.equalsAscii("Jun")) else if (month == "Jun")
return 6; return 6;
else if (month.equalsAscii("Jul")) else if (month == "Jul")
return 7; return 7;
else if (month.equalsAscii("Aug")) else if (month == "Aug")
return 8; return 8;
else if (month.equalsAscii("Sep")) else if (month == "Sep")
return 9; return 9;
else if (month.equalsAscii("Oct")) else if (month == "Oct")
return 10; return 10;
else if (month.equalsAscii("Nov")) else if (month == "Nov")
return 11; return 11;
else if (month.equalsAscii("Dec")) else if (month == "Dec")
return 12; return 12;
else else
return 0; return 0;
......
...@@ -202,7 +202,7 @@ OUString SerfUri::GetPathBaseNameUnescaped () const ...@@ -202,7 +202,7 @@ OUString SerfUri::GetPathBaseNameUnescaped () const
void SerfUri::AppendPath (const OUString& rPath) void SerfUri::AppendPath (const OUString& rPath)
{ {
if (mPath.lastIndexOf ('/') != mPath.getLength () - 1) if (mPath.lastIndexOf ('/') != mPath.getLength () - 1)
mPath += OUString("/"); mPath += "/";
mPath += rPath; mPath += rPath;
calculateURI (); calculateURI ();
......
...@@ -1134,7 +1134,7 @@ Content::queryCreatableContentsInfo() ...@@ -1134,7 +1134,7 @@ Content::queryCreatableContentsInfo()
uno::Sequence< ucb::ContentInfo > aSeq( 2 ); uno::Sequence< ucb::ContentInfo > aSeq( 2 );
// document. // document.
aSeq.getArray()[ 0 ].Type = OUString( WEBDAV_CONTENT_TYPE ); aSeq.getArray()[ 0 ].Type = WEBDAV_CONTENT_TYPE;
aSeq.getArray()[ 0 ].Attributes aSeq.getArray()[ 0 ].Attributes
= ucb::ContentInfoAttribute::INSERT_WITH_INPUTSTREAM = ucb::ContentInfoAttribute::INSERT_WITH_INPUTSTREAM
| ucb::ContentInfoAttribute::KIND_DOCUMENT; | ucb::ContentInfoAttribute::KIND_DOCUMENT;
...@@ -1148,7 +1148,7 @@ Content::queryCreatableContentsInfo() ...@@ -1148,7 +1148,7 @@ Content::queryCreatableContentsInfo()
aSeq.getArray()[ 0 ].Properties = aDocProps; aSeq.getArray()[ 0 ].Properties = aDocProps;
// folder. // folder.
aSeq.getArray()[ 1 ].Type = OUString( WEBDAV_COLLECTION_TYPE ); aSeq.getArray()[ 1 ].Type = WEBDAV_COLLECTION_TYPE;
aSeq.getArray()[ 1 ].Attributes aSeq.getArray()[ 1 ].Attributes
= ucb::ContentInfoAttribute::KIND_FOLDER; = ucb::ContentInfoAttribute::KIND_FOLDER;
......
...@@ -94,7 +94,7 @@ XTYPEPROVIDER_IMPL_3( ContentProvider, ...@@ -94,7 +94,7 @@ XTYPEPROVIDER_IMPL_3( ContentProvider,
XSERVICEINFO_IMPL_1_CTX( ContentProvider, XSERVICEINFO_IMPL_1_CTX( ContentProvider,
OUString( "com.sun.star.comp.WebDAVContentProvider" ), OUString( "com.sun.star.comp.WebDAVContentProvider" ),
OUString( WEBDAV_CONTENT_PROVIDER_SERVICE_NAME ) ); WEBDAV_CONTENT_PROVIDER_SERVICE_NAME );
......
...@@ -230,7 +230,7 @@ namespace ...@@ -230,7 +230,7 @@ namespace
void WebDAVContext::splitName(const OUString& rSource) void WebDAVContext::splitName(const OUString& rSource)
{ {
const sal_Int32 nLen(rSource.getLength()); const sal_Int32 nLen(rSource.getLength());
maNamespace = ""; maNamespace.clear();
maName = rSource; maName = rSource;
if(nLen) if(nLen)
...@@ -457,7 +457,8 @@ namespace ...@@ -457,7 +457,8 @@ namespace
case WebDAVName_response: case WebDAVName_response:
{ {
// response start, reset Href and status and maResponseProperties // response start, reset Href and status and maResponseProperties
maHref = maStatus = ""; maHref.clear();
maStatus.clear();
if(isCollectingProperties()) if(isCollectingProperties())
{ {
...@@ -807,7 +808,7 @@ namespace ...@@ -807,7 +808,7 @@ namespace
if(aNew.getLength()) if(aNew.getLength())
{ {
// add one char when appending (see html1.1 spec) // add one char when appending (see html1.1 spec)
aNew += OUString(' '); aNew += " ";
} }
aNew += aTrimmedChars; aNew += aTrimmedChars;
......
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