summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/docfile.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/doc/docfile.cxx')
-rw-r--r--sfx2/source/doc/docfile.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index 907e0134d938..5cab6ced56d3 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -1348,7 +1348,7 @@ uno::Reference < embed::XStorage > SfxMedium::GetStorage( sal_Bool bCreateTempIf
util::RevisionTag& rTag = pImp->aVersions[nVersion];
{
// Open SubStorage for all versions
- uno::Reference < embed::XStorage > xSub = pImp->xStorage->openStorageElement( DEFINE_CONST_UNICODE( "Versions" ),
+ uno::Reference < embed::XStorage > xSub = pImp->xStorage->openStorageElement( "Versions",
embed::ElementModes::READ );
DBG_ASSERT( xSub.is(), "Version list, but no Versions!" );
@@ -2173,7 +2173,7 @@ void SfxMedium::DoBackup_Impl()
// save as ".bak" file
INetURLObject aDest( aBakDir );
aDest.insertName( aSource.getName() );
- aDest.setExtension( DEFINE_CONST_UNICODE( "bak" ) );
+ aDest.setExtension( "bak" );
String aFileName = aDest.getName( INetURLObject::LAST_SEGMENT, true, INetURLObject::DECODE_WITH_CHARSET );
// create a content for the source file
@@ -3162,8 +3162,7 @@ sal_uInt16 SfxMedium::AddVersion_Impl( util::RevisionTag& rRevision )
if ( aLongs[nKey] > ( sal_uIntPtr ) nKey+1 )
break;
- String aRevName = DEFINE_CONST_UNICODE( "Version" );
- aRevName += String::CreateFromInt32( nKey + 1 );
+ OUString aRevName = "Version" + OUString::number( nKey + 1 );
pImp->aVersions.realloc( nLength+1 );
rRevision.Identifier = aRevName;
pImp->aVersions[nLength] = rRevision;