diff options
author | Noel Grandin <noel@peralex.com> | 2013-10-25 17:17:50 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-04 10:11:07 +0200 |
commit | aeb41c9b9b7559c6d87bf92807acdc0df9e104cc (patch) | |
tree | 5a36bcd5af873c2b597fcda5fbd7e2f76f997669 /sfx2/source/doc | |
parent | 57c2de08ddf14c0da80de06736d99382ad036539 (diff) |
remove redundant calls to OUString constructor
Change code like this:
aStr = OUString("xxxx");
into this:
aStr = "xxxx";
Change-Id: I31cb92e21658d57bb9e14b65c179536eae8096f6
Diffstat (limited to 'sfx2/source/doc')
-rw-r--r-- | sfx2/source/doc/SfxDocumentMetaData.cxx | 3 | ||||
-rw-r--r-- | sfx2/source/doc/docfac.cxx | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/sfx2/source/doc/SfxDocumentMetaData.cxx b/sfx2/source/doc/SfxDocumentMetaData.cxx index 0c31186b20ad..4859c0c54acc 100644 --- a/sfx2/source/doc/SfxDocumentMetaData.cxx +++ b/sfx2/source/doc/SfxDocumentMetaData.cxx @@ -1918,8 +1918,7 @@ SfxDocumentMetaData::loadFromStorage( try { xPropArg->getPropertyValue("BaseURI") >>= input.sSystemId; - input.sSystemId += OUString("/").concat( - OUString(s_meta)); + input.sSystemId += "/" + OUString(s_meta); } catch (const css::uno::Exception &) { input.sSystemId = OUString(s_meta); } diff --git a/sfx2/source/doc/docfac.cxx b/sfx2/source/doc/docfac.cxx index 7ca28798eb9e..cc2119a3e368 100644 --- a/sfx2/source/doc/docfac.cxx +++ b/sfx2/source/doc/docfac.cxx @@ -253,7 +253,7 @@ void SfxObjectFactory::SetSystemTemplate( const OUString& rServiceName, const OU OUString aBackupURL; ::osl::Security().getConfigDir(aBackupURL); - aBackupURL += OUString("/temp"); + aBackupURL += "/temp"; if ( !xSimpleFileAccess->exists( aBackupURL ) ) xSimpleFileAccess->createFolder( aBackupURL ); |