diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2018-07-06 05:45:25 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2018-07-06 07:43:02 +0200 |
commit | 3aa4edb1028bfafff38efda8843f8ebe43a38155 (patch) | |
tree | 379ee3a8c3279e40d6e8bbf74856991add037382 /sw/source/uibase/dbui | |
parent | 9891fd076c30d353e9edfee9678f0b8e96d26238 (diff) |
Simplify string concatenation.
Change-Id: Ib478a7371599309f68b6fffd4dbed0f17c9ecb01
Reviewed-on: https://gerrit.libreoffice.org/57032
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw/source/uibase/dbui')
-rw-r--r-- | sw/source/uibase/dbui/dbmgr.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx index 90499f74dd59..2119b825ef5c 100644 --- a/sw/source/uibase/dbui/dbmgr.cxx +++ b/sw/source/uibase/dbui/dbmgr.cxx @@ -2782,10 +2782,7 @@ OUString LoadAndRegisterDataSource_Impl(DBConnURIType type, const uno::Reference sFind = sNewName; sal_Int32 nIndex = 0; while (xDBContext->hasByName(sFind)) - { - sFind = sNewName; - sFind += OUString::number(++nIndex); - } + sFind = sNewName + OUString::number(++nIndex); uno::Reference<uno::XInterface> xNewInstance; if (!bStore) |