Simplify string concatenation.

Change-Id: Ib478a7371599309f68b6fffd4dbed0f17c9ecb01
Reviewed-on: https://gerrit.libreoffice.org/57032
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
Mike Kaganski
2018-07-06 05:45:25 +02:00
parent 9891fd076c
commit 3aa4edb102

View File

@@ -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)