sw/source/uibase/dbui/dbmgr.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
New commits: commit 3aa4edb1028bfafff38efda8843f8ebe43a38155 Author: Mike Kaganski <mike.kagan...@collabora.com> Date: Fri Jul 6 05:45:25 2018 +0200 Simplify string concatenation. Change-Id: Ib478a7371599309f68b6fffd4dbed0f17c9ecb01 Reviewed-on: https://gerrit.libreoffice.org/57032 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> 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) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits