diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2013-12-28 22:30:40 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2013-12-28 22:40:43 +0100 |
commit | 5d00bab62b255342f00ce31d7390f8ed5a1c6501 (patch) | |
tree | a2bf6be3634c0beb2a351afd002c04342c51eaa4 /editeng | |
parent | Use member initialization list in some constructors (diff) | |
download | core-5d00bab62b255342f00ce31d7390f8ed5a1c6501.tar.gz core-5d00bab62b255342f00ce31d7390f8ed5a1c6501.zip |
Use OUString constructor for constant ASCII
Change-Id: Ifc80743c748c2542055cfe825ad322b83958d976
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/editdoc.cxx | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx index dc0a64415c08..0b45180484ff 100644 --- a/editeng/source/editeng/editdoc.cxx +++ b/editeng/source/editeng/editdoc.cxx @@ -2013,10 +2013,6 @@ void EditDoc::CreateDefFont( sal_Bool bUseStyles ) } } -static const sal_Unicode aCR[] = { 0x0d, 0x00 }; -static const sal_Unicode aLF[] = { 0x0a, 0x00 }; -static const sal_Unicode aCRLF[] = { 0x0d, 0x0a, 0x00 }; - sal_Int32 EditDoc::GetPos(const ContentNode* p) const { return FastGetPos(maContents, p, nLastCache); @@ -2085,14 +2081,11 @@ sal_Int32 EditDoc::Count() const OUString EditDoc::GetSepStr( LineEnd eEnd ) { - OUString aSep; if ( eEnd == LINEEND_CR ) - aSep = aCR; - else if ( eEnd == LINEEND_LF ) - aSep = aLF; - else - aSep = aCRLF; - return aSep; + return OUString("\015"); // 0x0d + if ( eEnd == LINEEND_LF ) + return OUString("\012"); // 0x0a + return OUString("\015\012"); // 0x0d, 0x0a } OUString EditDoc::GetText( LineEnd eEnd ) const @@ -3044,7 +3037,7 @@ SvxColorItem* SvxColorList::GetObject( size_t nIndex ) } EditEngineItemPool::EditEngineItemPool( sal_Bool bPersistenRefCounts ) - : SfxItemPool( OUString( "EditEngineItemPool" ), EE_ITEMS_START, EE_ITEMS_END, + : SfxItemPool( "EditEngineItemPool", EE_ITEMS_START, EE_ITEMS_END, aItemInfos, 0, bPersistenRefCounts ) { SetVersionMap( 1, 3999, 4015, aV1Map ); |