sw/source/ui/dialog/uiregionsw.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit ea2386b7ca141d0390b5f0c5ca7553aec62e316e Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Sat May 7 16:01:09 2022 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Sat May 7 17:19:47 2022 +0200 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 <sberg...@redhat.com> 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++];