summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/file/bc.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-13 15:39:07 +0200
committerNoel Grandin <noel@peralex.com>2013-11-14 08:17:29 +0200
commit3acca4c859b7198bc3caf4c690bfc653883e61b7 (patch)
tree0df7a067e060de6787c942493880136419fbf1b9 /ucb/source/ucp/file/bc.cxx
parent15113ea855baab1f8319a7125cec90d203904cb7 (diff)
remove unnecessary sal_Unicode casts in UCB module
Change-Id: Ib93120ec0cae76b5ea19f723054363771b27ab56
Diffstat (limited to 'ucb/source/ucp/file/bc.cxx')
-rw-r--r--ucb/source/ucp/file/bc.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/ucb/source/ucp/file/bc.cxx b/ucb/source/ucp/file/bc.cxx
index 0578243aaa2e..73f734dff0f2 100644
--- a/ucb/source/ucp/file/bc.cxx
+++ b/ucb/source/ucp/file/bc.cxx
@@ -893,7 +893,7 @@ BaseContent::setPropertyValues(
{
aBuf.append( NewTitle );
if ( bTrailingSlash )
- aBuf.append( sal_Unicode( '/' ) );
+ aBuf.append( '/' );
}
else
{
@@ -909,7 +909,7 @@ BaseContent::setPropertyValues(
// Initial Title before "insert".
// m_aUncPath contains parent's URI.
- if( m_aUncPath.lastIndexOf( sal_Unicode('/') ) != m_aUncPath.getLength() - 1 )
+ if( !m_aUncPath.endsWith( "/" ) )
m_aUncPath += "/";
m_aUncPath += rtl::Uri::encode( NewTitle,
@@ -950,7 +950,7 @@ BaseContent::setPropertyValues(
OUString aDstName = getParentName( m_aUncPath );
- if( aDstName.lastIndexOf( sal_Unicode('/') ) != aDstName.getLength() - 1 )
+ if( !aDstName.endsWith("/") )
aDstName += "/";
aDstName += rtl::Uri::encode( NewTitle,
@@ -1109,7 +1109,7 @@ BaseContent::transfer( sal_Int32 nMyCommandIdentifier,
rtl_UriEncodeIgnoreEscapes,
RTL_TEXTENCODING_UTF8 );
else
- NewTitle = srcUncPath.copy( 1 + srcUncPath.lastIndexOf( sal_Unicode('/') ) );
+ NewTitle = srcUncPath.copy( 1 + srcUncPath.lastIndexOf( '/' ) );
// Is destination a document or a folder ?
Sequence< beans::Property > seq(1);
@@ -1129,7 +1129,7 @@ BaseContent::transfer( sal_Int32 nMyCommandIdentifier,
OUString dstUncPath;
if( IsDocument )
{ // as sibling
- sal_Int32 lastSlash = m_aUncPath.lastIndexOf( sal_Unicode('/') );
+ sal_Int32 lastSlash = m_aUncPath.lastIndexOf( '/' );
dstUncPath = m_aUncPath.copy(0,lastSlash );
}
else
@@ -1246,7 +1246,7 @@ void SAL_CALL BaseContent::insert( sal_Int32 nMyCommandIdentifier,
// determine new uncpath
m_pMyShell->clearError( nMyCommandIdentifier );
m_aUncPath = getParentName( m_aUncPath );
- if( m_aUncPath.lastIndexOf( sal_Unicode('/') ) != m_aUncPath.getLength() - 1 )
+ if( !m_aUncPath.endsWith( "/" ) )
m_aUncPath += "/";
m_aUncPath += rtl::Uri::encode( aRequestImpl->newName(),