diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-04-02 09:38:26 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-04-02 14:53:50 +0100 |
commit | e9a467cafbffb380c54e90b24f9ee20cd4adc7e8 (patch) | |
tree | 9a5c6d4dcfdcb4ff7b089c0219d51e58c70146fc /sc/source/ui/docshell | |
parent | e6409de0f879df204de7b07117798e2d77235458 (diff) |
remove static objects from static_initialization_and_destruction chain
Diffstat (limited to 'sc/source/ui/docshell')
-rw-r--r-- | sc/source/ui/docshell/impex.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sc/source/ui/docshell/impex.cxx b/sc/source/ui/docshell/impex.cxx index ff2929f08117..eecae51acbfd 100644 --- a/sc/source/ui/docshell/impex.cxx +++ b/sc/source/ui/docshell/impex.cxx @@ -89,9 +89,9 @@ class StarBASIC; namespace { - const String SYLK_LF = String::CreateFromAscii("\x1b :"); - const String DOUBLE_SEMICOLON = String::CreateFromAscii(";;"); - const String DOUBLE_DOUBLEQUOTE = String::CreateFromAscii("\"\""); + const char SYLK_LF[] = "\x1b :"; + const char DOUBLE_SEMICOLON[] = ";;"; + const char DOUBLE_DOUBLEQUOTE[] = "\"\""; } enum SylkVersion @@ -624,11 +624,11 @@ void lcl_UnescapeSylk( String & rString, SylkVersion eVersion ) // Older versions quoted the string and doubled embedded quotes, but not // the semicolons, which was plain wrong. if (eVersion >= SYLK_OOO32) - rString.SearchAndReplaceAll( DOUBLE_SEMICOLON, ';' ); + rString.SearchAndReplaceAll( rtl::OUString(DOUBLE_SEMICOLON), ';' ); else - rString.SearchAndReplaceAll( DOUBLE_DOUBLEQUOTE, '"' ); + rString.SearchAndReplaceAll( rtl::OUString(DOUBLE_DOUBLEQUOTE), '"' ); - rString.SearchAndReplaceAll( SYLK_LF, _LF ); + rString.SearchAndReplaceAll( rtl::OUString(SYLK_LF), _LF ); } static const sal_Unicode* lcl_ScanSylkString( const sal_Unicode* p, @@ -1857,7 +1857,7 @@ sal_Bool ScImportExport::Doc2Sylk( SvStream& rStrm ) case CELLTYPE_EDIT: hasstring: pDoc->GetString( nCol, nRow, aRange.aStart.Tab(), aCellStr ); - aCellStr.SearchAndReplaceAll( _LF, SYLK_LF ); + aCellStr.SearchAndReplaceAll( _LF, rtl::OUString(SYLK_LF) ); aBufStr.AssignAscii(RTL_CONSTASCII_STRINGPARAM( "C;X" )); aBufStr += String::CreateFromInt32( c ); |