summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-03-15 01:33:27 +0100
committerThomas Arnhold <thomas@arnhold.org>2013-03-15 01:33:45 +0100
commitb0434a2a6d9bd4730710a19aec5ddbea83014809 (patch)
tree851519e8c6230b1b48597a195b7be1ea8e13e7f0
parentff6c2e720ba3eb42636b0e7f2ad1981537658d39 (diff)
simplify copy
Change-Id: Iec5a960b0a6492b1e4690c31b9c2098248c23cfa
-rw-r--r--sc/source/core/data/global.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/global.cxx b/sc/source/core/data/global.cxx
index 2d439ee88893..342899745373 100644
--- a/sc/source/core/data/global.cxx
+++ b/sc/source/core/data/global.cxx
@@ -831,7 +831,7 @@ void ScGlobal::EraseQuotes( OUString& rString, sal_Unicode cQuote, bool bUnescap
{
if ( IsQuoted( rString, cQuote ) )
{
- rString = rString.copy( 0, rString.getLength() - 1 ).copy( 1 );
+ rString = rString.copy( 1, rString.getLength() - 1 );
if (bUnescapeEmbedded)
{
sal_Unicode pQ[3];