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:
@@ -2782,10 +2782,7 @@ OUString LoadAndRegisterDataSource_Impl(DBConnURIType type, const uno::Reference
|
|||||||
sFind = sNewName;
|
sFind = sNewName;
|
||||||
sal_Int32 nIndex = 0;
|
sal_Int32 nIndex = 0;
|
||||||
while (xDBContext->hasByName(sFind))
|
while (xDBContext->hasByName(sFind))
|
||||||
{
|
sFind = sNewName + OUString::number(++nIndex);
|
||||||
sFind = sNewName;
|
|
||||||
sFind += OUString::number(++nIndex);
|
|
||||||
}
|
|
||||||
|
|
||||||
uno::Reference<uno::XInterface> xNewInstance;
|
uno::Reference<uno::XInterface> xNewInstance;
|
||||||
if (!bStore)
|
if (!bStore)
|
||||||
|
Reference in New Issue
Block a user