summaryrefslogtreecommitdiff
path: root/ucb/source
diff options
context:
space:
mode:
Diffstat (limited to 'ucb/source')
-rw-r--r--ucb/source/core/ucbcmds.cxx2
-rw-r--r--ucb/source/core/ucbstore.cxx12
-rw-r--r--ucb/source/ucp/ext/ucpext_provider.cxx2
-rw-r--r--ucb/source/ucp/file/bc.cxx2
4 files changed, 9 insertions, 9 deletions
diff --git a/ucb/source/core/ucbcmds.cxx b/ucb/source/core/ucbcmds.cxx
index 819f3a05c155..685767f6cbf9 100644
--- a/ucb/source/core/ucbcmds.cxx
+++ b/ucb/source/core/ucbcmds.cxx
@@ -1510,7 +1510,7 @@ void globalTransfer_(
0,
rContext.xEnv );
- const OUString cmdName("flush");
+ static const OUStringLiteral cmdName(u"flush");
if((aAny >>= xci) && xci->hasCommandByName(cmdName))
xcp->execute(
ucb::Command(
diff --git a/ucb/source/core/ucbstore.cxx b/ucb/source/core/ucbstore.cxx
index bf86eba5fefc..735d83fb2991 100644
--- a/ucb/source/core/ucbstore.cxx
+++ b/ucb/source/core/ucbstore.cxx
@@ -1746,9 +1746,9 @@ Sequence< PropertyValue > SAL_CALL PersistentPropertySet::getPropertyValues()
{
Sequence< PropertyValue > aValues( nCount );
- const OUString aHandleName("/Handle");
- const OUString aValueName("/Value");
- const OUString aStateName("/State");
+ static const OUStringLiteral aHandleName(u"/Handle");
+ static const OUStringLiteral aValueName(u"/Value");
+ static const OUStringLiteral aStateName(u"/State");
for ( sal_Int32 n = 0; n < nCount; ++n )
{
@@ -2087,9 +2087,9 @@ Sequence< Property > SAL_CALL PropertySetInfo_Impl::getProperties()
if ( xHierNameAccess.is() )
{
- const OUString aHandleName("/Handle");
- const OUString aValueName("/Value");
- const OUString aAttrName("/Attributes");
+ static const OUStringLiteral aHandleName(u"/Handle");
+ static const OUStringLiteral aValueName(u"/Value");
+ static const OUStringLiteral aAttrName(u"/Attributes");
Property* pProps = pPropSeq->getArray();
diff --git a/ucb/source/ucp/ext/ucpext_provider.cxx b/ucb/source/ucp/ext/ucpext_provider.cxx
index 3befadd28a81..eac919e4099b 100644
--- a/ucb/source/ucp/ext/ucpext_provider.cxx
+++ b/ucb/source/ucp/ext/ucpext_provider.cxx
@@ -93,7 +93,7 @@ namespace ucb::ucp::ext
Reference< XContent > SAL_CALL ContentProvider::queryContent( const Reference< XContentIdentifier >& i_rIdentifier )
{
// Check URL scheme...
- const OUString sScheme( "vnd.sun.star.extension" );
+ static const OUStringLiteral sScheme( u"vnd.sun.star.extension" );
if ( !i_rIdentifier->getContentProviderScheme().equalsIgnoreAsciiCase( sScheme ) )
throw IllegalIdentifierException();
diff --git a/ucb/source/ucp/file/bc.cxx b/ucb/source/ucp/file/bc.cxx
index e77f6ed45e22..d85a214063ba 100644
--- a/ucb/source/ucp/file/bc.cxx
+++ b/ucb/source/ucp/file/bc.cxx
@@ -696,7 +696,7 @@ BaseContent::setPropertyValues(
return Sequence< Any >( Values.getLength() );
}
- const OUString Title("Title");
+ static const OUStringLiteral Title(u"Title");
// Special handling for files which have to be inserted
if( m_nState & JustInserted )