summaryrefslogtreecommitdiffstats
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2012-06-26 21:49:01 +0200
committerEike Rathke <erack@redhat.com>2012-06-26 21:59:08 +0200
commita323d44a95c8e4a82599fa33d7d78d4d407741d0 (patch)
tree60a10fb48a53c1b05fb80e0f3f74986c52298d7b /sc
parentandroid: add --with-android-arch to make space for an x86 target (diff)
downloadcore-a323d44a95c8e4a82599fa33d7d78d4d407741d0.tar.gz
core-a323d44a95c8e4a82599fa33d7d78d4d407741d0.zip
bring some sense into translated comment
Change-Id: I045927b3310ddef6208a1d0a837ed6bc098f9ca8
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/interpr1.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index f3090bf8f200..a7f6572bc9fc 100644
--- a/sc/source/core/tool/interpr1.cxx
+++ b/sc/source/core/tool/interpr1.cxx
@@ -2970,14 +2970,14 @@ void ScInterpreter::ScN()
void ScInterpreter::ScTrim()
{
- // Doesn't only trim but writes out twice!
+ // Doesn't only trim but also removes duplicated blanks within!
String aVal = comphelper::string::strip(GetString(), ' ');
String aStr;
register const sal_Unicode* p = aVal.GetBuffer();
register const sal_Unicode* const pEnd = p + aVal.Len();
while ( p < pEnd )
{
- if ( *p != ' ' || p[-1] != ' ' ) // ' ' can't be first, -1 is fine too
+ if ( *p != ' ' || p[-1] != ' ' ) // first can't be ' ', so -1 is fine
aStr += *p;
p++;
}