summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-05-07 16:01:09 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-05-07 17:19:47 +0200
commitea2386b7ca141d0390b5f0c5ca7553aec62e316e (patch)
tree7b503629dfd6abd344dcc591c89154400c902748 /sw
parent7d1511cfd85915e7a0764eb9de4d7a4448741958 (diff)
Drop excess +1
...as identified by Noel in the comment at <https://gerrit.libreoffice.org/c/core/+/133841/3#message-e2b2c6daa41983c25d6fc758235b993d04e1c055> "tdf#148299 Don't unmotivatedly mess with spaces in file names" Change-Id: Ie118191ceb731ceef3ca92869a4fa8c05f5835e1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133981 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/dialog/uiregionsw.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/dialog/uiregionsw.cxx b/sw/source/ui/dialog/uiregionsw.cxx
index b13b641090ad..ec945dc6f8c3 100644
--- a/sw/source/ui/dialog/uiregionsw.cxx
+++ b/sw/source/ui/dialog/uiregionsw.cxx
@@ -77,7 +77,7 @@ OUString CollapseWhiteSpaces(const OUString& sName)
{
const sal_Int32 nLen = sName.getLength();
const sal_Unicode cRef = ' ';
- OUStringBuffer aBuf(nLen+1);
+ OUStringBuffer aBuf(nLen);
for (sal_Int32 i = 0; i<nLen; )
{
const sal_Unicode cCur = sName[i++];