diff options
author | Noel Grandin <noel@peralex.com> | 2013-10-31 17:37:03 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-08 08:44:33 +0200 |
commit | 913b4e7d856ad6392588886a4124d05676e8968d (patch) | |
tree | 0657c6a9bacb68cbc30a93e394c207086f317938 /svx/source/gallery2 | |
parent | a5536d9a0eac922d18f9008122034ca943d50148 (diff) |
remove unnecessary use of OUString constructor in SVX module
Change-Id: I1506daaa4a3b736ee6bbb00100fca24df8368298
Diffstat (limited to 'svx/source/gallery2')
-rw-r--r-- | svx/source/gallery2/gallery1.cxx | 2 | ||||
-rw-r--r-- | svx/source/gallery2/galmisc.cxx | 4 | ||||
-rw-r--r-- | svx/source/gallery2/galtheme.cxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/gallery2/gallery1.cxx b/svx/source/gallery2/gallery1.cxx index e7cea796a683..12f2a0a00392 100644 --- a/svx/source/gallery2/gallery1.cxx +++ b/svx/source/gallery2/gallery1.cxx @@ -231,7 +231,7 @@ void Gallery::ImplLoadSubDirs( const INetURLObject& rBaseURL, sal_Bool& rbDirIsR ::ucbhelper::Content aCnt( rBaseURL.GetMainURL( INetURLObject::NO_DECODE ), xEnv, comphelper::getProcessComponentContext() ); uno::Sequence< OUString > aProps( 1 ); - aProps.getArray()[ 0 ] = OUString("Url"); + aProps.getArray()[ 0 ] = "Url"; uno::Reference< sdbc::XResultSet > xResultSet( aCnt.createCursor( aProps, ::ucbhelper::INCLUDE_DOCUMENTS_ONLY ) ); diff --git a/svx/source/gallery2/galmisc.cxx b/svx/source/gallery2/galmisc.cxx index 1b3409be063d..b1214d5f96e4 100644 --- a/svx/source/gallery2/galmisc.cxx +++ b/svx/source/gallery2/galmisc.cxx @@ -267,8 +267,8 @@ sal_Bool CreateDir( const INetURLObject& rURL ) uno::Sequence< OUString > aProps( 1 ); uno::Sequence< uno::Any > aValues( 1 ); - aProps.getArray()[ 0 ] = OUString("Title"); - aValues.getArray()[ 0 ] = uno::makeAny( OUString( aNewFolderURL.GetName() ) ); + aProps[0] = "Title"; + aValues[0] = uno::makeAny( OUString( aNewFolderURL.GetName() ) ); ::ucbhelper::Content aContent( aNewFolderURL.GetMainURL( INetURLObject::NO_DECODE ), aCmdEnv, comphelper::getProcessComponentContext() ); bRet = aParent.insertNewContent( OUString("application/vnd.sun.staroffice.fsys-folder"), aProps, aValues, aContent ); diff --git a/svx/source/gallery2/galtheme.cxx b/svx/source/gallery2/galtheme.cxx index dc2f48ad336c..bcc4e5a27a5d 100644 --- a/svx/source/gallery2/galtheme.cxx +++ b/svx/source/gallery2/galtheme.cxx @@ -1138,7 +1138,7 @@ sal_Bool GalleryTheme::InsertFileOrDirURL( const INetURLObject& rFileOrDirURL, s if( bFolder ) { uno::Sequence< OUString > aProps( 1 ); - aProps.getArray()[ 0 ] = OUString("Url"); + aProps[ 0 ] = "Url"; uno::Reference< sdbc::XResultSet > xResultSet( aCnt.createCursor( aProps, ::ucbhelper::INCLUDE_DOCUMENTS_ONLY ) ); uno::Reference< ucb::XContentAccess > xContentAccess( xResultSet, uno::UNO_QUERY ); if( xContentAccess.is() ) |