summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/objstor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/doc/objstor.cxx')
-rw-r--r--sfx2/source/doc/objstor.cxx30
1 files changed, 15 insertions, 15 deletions
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index 653ea8877a94..f303bc6e5e97 100644
--- a/sfx2/source/doc/objstor.cxx
+++ b/sfx2/source/doc/objstor.cxx
@@ -723,7 +723,7 @@ bool SfxObjectShell::DoLoad( SfxMedium *pMed )
&& !bPdfiumImport)
{
uno::Reference < beans::XPropertySet > xSet( GetModel(), uno::UNO_QUERY );
- const OUString sLockUpdates("LockUpdates");
+ static const OUStringLiteral sLockUpdates(u"LockUpdates");
bool bSetProperty = true;
try
{
@@ -765,9 +765,9 @@ bool SfxObjectShell::DoLoad( SfxMedium *pMed )
css::uno::Reference < XPropertySetInfo > xProps = aContent.getProperties();
if ( xProps.is() )
{
- const OUString aAuthor( "Author" );
- const OUString aKeywords( "Keywords" );
- const OUString aSubject( "Subject" );
+ static const OUStringLiteral aAuthor( u"Author" );
+ static const OUStringLiteral aKeywords( u"Keywords" );
+ static const OUStringLiteral aSubject( u"Subject" );
Any aAny;
OUString aValue;
uno::Reference<document::XDocumentPropertiesSupplier> xDPS(
@@ -1029,8 +1029,8 @@ bool SfxObjectShell::DoSave()
if ( !xTmpStorage.is() )
throw uno::RuntimeException();
- const OUString aBasicStorageName( "Basic" );
- const OUString aDialogsStorageName( "Dialogs" );
+ static const OUStringLiteral aBasicStorageName( u"Basic" );
+ static const OUStringLiteral aDialogsStorageName( u"Dialogs" );
if ( GetMedium()->GetStorage()->hasByName( aBasicStorageName ) )
GetMedium()->GetStorage()->copyElementTo( aBasicStorageName, xTmpStorage, aBasicStorageName );
if ( GetMedium()->GetStorage()->hasByName( aDialogsStorageName ) )
@@ -1464,7 +1464,7 @@ bool SfxObjectShell::SaveTo_Impl
if ( aVersions.hasElements() )
{
// copy the version streams
- const OUString aVersionsName( "Versions" );
+ static const OUStringLiteral aVersionsName( u"Versions" );
uno::Reference< embed::XStorage > xNewVerStor = xMedStorage->openStorageElement(
aVersionsName,
embed::ElementModes::READWRITE );
@@ -1701,9 +1701,9 @@ bool SfxObjectShell::SaveTo_Impl
css::uno::Reference < XPropertySetInfo > xProps = aContent.getProperties();
if ( xProps.is() )
{
- const OUString aAuthor( "Author" );
- const OUString aKeywords( "Keywords" );
- const OUString aSubject( "Subject" );
+ static const OUStringLiteral aAuthor( u"Author" );
+ static const OUStringLiteral aKeywords( u"Keywords" );
+ static const OUStringLiteral aSubject( u"Subject" );
uno::Reference<document::XDocumentPropertiesSupplier> xDPS(
GetModel(), uno::UNO_QUERY_THROW);
@@ -2205,7 +2205,7 @@ bool SfxObjectShell::ImportFrom(SfxMedium& rMedium,
css::uno::Sequence < css::beans::PropertyValue > aArgs ( lDescriptor.getLength() );
css::beans::PropertyValue * pNewValue = aArgs.getArray();
const css::beans::PropertyValue * pOldValue = lDescriptor.getConstArray();
- const OUString sInputStream ( "InputStream" );
+ static const OUStringLiteral sInputStream ( u"InputStream" );
bool bHasInputStream = false;
bool bHasBaseURL = false;
@@ -2385,8 +2385,8 @@ bool SfxObjectShell::ExportTo( SfxMedium& rMedium )
css::beans::PropertyValue * pNewValue = aArgs.getArray();
// put in the REAL file name, and copy all PropertyValues
- const OUString sOutputStream ( "OutputStream" );
- const OUString sStream ( "StreamForOutput" );
+ static const OUStringLiteral sOutputStream ( u"OutputStream" );
+ static const OUStringLiteral sStream ( u"StreamForOutput" );
bool bHasOutputStream = false;
bool bHasStream = false;
bool bHasBaseURL = false;
@@ -3346,7 +3346,7 @@ static bool StoragesOfUnknownMediaTypeAreCopied_Impl( const uno::Reference< embe
if ( xSource->isStorageElement( rSubElement ) )
{
OUString aMediaType;
- const OUString aMediaTypePropName( "MediaType" );
+ static const OUStringLiteral aMediaTypePropName( u"MediaType" );
bool bGotMediaType = false;
try
@@ -3483,7 +3483,7 @@ bool SfxObjectShell::CopyStoragesOfUnknownMediaType(const uno::Reference< embed:
else if (xSource->isStorageElement(rSubElement))
{
OUString aMediaType;
- const OUString aMediaTypePropName( "MediaType" );
+ static const OUStringLiteral aMediaTypePropName( u"MediaType" );
bool bGotMediaType = false;
try