diff options
author | Eike Rathke <erack@redhat.com> | 2012-06-26 21:49:01 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2012-06-26 21:59:08 +0200 |
commit | a323d44a95c8e4a82599fa33d7d78d4d407741d0 (patch) | |
tree | 60a10fb48a53c1b05fb80e0f3f74986c52298d7b /sc | |
parent | 377d16bf8b61b5543233f4ffdef7dd1848585040 (diff) |
bring some sense into translated comment
Change-Id: I045927b3310ddef6208a1d0a837ed6bc098f9ca8
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/interpr1.cxx | 4 |
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++; } |