summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww1/fltshell.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-06-20 23:57:47 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-06-21 15:07:52 +0100
commitc3f2401d49b1374431da54e799a23bc122c5def7 (patch)
tree81ea39989af360ca879c7a84e7b1643698255589 /sw/source/filter/ww1/fltshell.cxx
parent3d506e814719ecaa5862663bce467994ccf31a4d (diff)
reduce scope and replace some String::CreateFromAscii
Change-Id: I8c375e3bfbcd3d7046a8bdb1968934b7d7ca96f8
Diffstat (limited to 'sw/source/filter/ww1/fltshell.cxx')
-rw-r--r--sw/source/filter/ww1/fltshell.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/filter/ww1/fltshell.cxx b/sw/source/filter/ww1/fltshell.cxx
index 4e155642067b..719dfb6c8051 100644
--- a/sw/source/filter/ww1/fltshell.cxx
+++ b/sw/source/filter/ww1/fltshell.cxx
@@ -1001,8 +1001,7 @@ SwFltShell::~SwFltShell()
SwDoc& rDoc = GetDoc();
// 1. SectionFmt und Section anlegen
SwSectionFmt* pSFmt = rDoc.MakeSectionFmt( 0 );
- SwSectionData aSectionData( CONTENT_SECTION, String::CreateFromAscii(
- RTL_CONSTASCII_STRINGPARAM("PMW-Protect") ));
+ SwSectionData aSectionData(CONTENT_SECTION, rtl::OUString("PMW-Protect"));
aSectionData.SetProtectFlag( true );
// 2. Start- und EndIdx suchen
const SwNode* pEndNd = &rDoc.GetNodes().GetEndOfContent();
@@ -1085,8 +1084,7 @@ SwFltShell& SwFltShell::operator << ( const sal_Unicode c )
SwFltShell& SwFltShell::AddError( const sal_Char* pErr )
{
- String aName( String::CreateFromAscii(
- RTL_CONSTASCII_STRINGPARAM( "ErrorTag" )));
+ String aName(rtl::OUString("ErrorTag"));
SwFieldType* pFT = GetDoc().GetFldType( RES_SETEXPFLD, aName, false );
if( pFT == 0)
{