summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-09-03 09:33:39 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-09-03 09:34:00 +0200
commit37a6fdf890d49a20a57aeb41021dc0ff663cc628 (patch)
treeddc85350aacd58ced61263b4e34ed585e63c2933 /sc
parent411e32244c7bff5fb64a049b1c63cf15ac166cd3 (diff)
loplugin:stringconstant also for cases using char const v[] = "..."
Change-Id: Iba38686620624178a7be39d703389402bbcea4cb
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/docshell/impex.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/docshell/impex.cxx b/sc/source/ui/docshell/impex.cxx
index c9f2c706202a..da82e0b5df16 100644
--- a/sc/source/ui/docshell/impex.cxx
+++ b/sc/source/ui/docshell/impex.cxx
@@ -695,11 +695,11 @@ static void lcl_UnescapeSylk( OUString & 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 = rString.replaceAll(OUString(DOUBLE_SEMICOLON), ";");
+ rString = rString.replaceAll(DOUBLE_SEMICOLON, ";");
else
- rString = rString.replaceAll(OUString(DOUBLE_DOUBLEQUOTE), "\"");
+ rString = rString.replaceAll(DOUBLE_DOUBLEQUOTE, "\"");
- rString = rString.replaceAll(OUString(SYLK_LF), "\n");
+ rString = rString.replaceAll(SYLK_LF, "\n");
}
static const sal_Unicode* lcl_ScanSylkString( const sal_Unicode* p,
@@ -2002,7 +2002,7 @@ bool ScImportExport::Doc2Sylk( SvStream& rStrm )
case CELLTYPE_EDIT:
hasstring:
aCellStr = pDoc->GetString(nCol, nRow, aRange.aStart.Tab());
- aCellStr = aCellStr.replaceAll("\n", OUString(SYLK_LF));
+ aCellStr = aCellStr.replaceAll("\n", SYLK_LF);
aBufStr = "C;X";
aBufStr += OUString::number( c );