summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/core/FileAccess.cxx8
-rw-r--r--ucb/source/ucp/tdoc/tdoc_documentcontentfactory.cxx4
2 files changed, 3 insertions, 9 deletions
diff --git a/ucb/source/core/FileAccess.cxx b/ucb/source/core/FileAccess.cxx
index 0593044db820..f386d14e69ca 100644
--- a/ucb/source/core/FileAccess.cxx
+++ b/ucb/source/core/FileAccess.cxx
@@ -395,9 +395,7 @@ void OFileAccess::createFolder( const OUString& NewFolderURL )
if ( rProps[ 0 ].Name != "Title" )
continue;
- Sequence<OUString> aNames(1);
- OUString* pNames = aNames.getArray();
- pNames[0] = "Title";
+ Sequence<OUString> aNames { "Title" };
Sequence< Any > aValues(1);
Any* pValues = aValues.getArray();
pValues[0] = makeAny( OUString( aTitle ) );
@@ -668,9 +666,7 @@ bool OFileAccess::createNewFile( const OUString & rParentURL,
if ( rProps[ 0 ].Name != "Title" )
continue;
- Sequence<OUString> aNames(1);
- OUString* pNames = aNames.getArray();
- pNames[0] = "Title";
+ Sequence<OUString> aNames { "Title" };
Sequence< Any > aValues(1);
Any* pValues = aValues.getArray();
pValues[0] = makeAny( OUString( rTitle ) );
diff --git a/ucb/source/ucp/tdoc/tdoc_documentcontentfactory.cxx b/ucb/source/ucp/tdoc/tdoc_documentcontentfactory.cxx
index c896e834f410..7cf07b8c7c33 100644
--- a/ucb/source/ucp/tdoc/tdoc_documentcontentfactory.cxx
+++ b/ucb/source/ucp/tdoc/tdoc_documentcontentfactory.cxx
@@ -94,9 +94,7 @@ OUString DocumentContentFactory::getImplementationName_Static()
uno::Sequence< OUString >
DocumentContentFactory::getSupportedServiceNames_Static()
{
- uno::Sequence< OUString > aSNS( 1 );
- aSNS.getArray()[ 0 ]
- = "com.sun.star.frame.TransientDocumentsDocumentContentFactory";
+ uno::Sequence< OUString > aSNS { "com.sun.star.frame.TransientDocumentsDocumentContentFactory" };
return aSNS;
}