Replace OUStringBuffer in valueacc (svtools)

Change-Id: I8b40c0c29154e8b4162e55dc202bfb0233c79a61
Reviewed-on: https://gerrit.libreoffice.org/48072
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
Julien Nabet
2018-01-17 18:26:34 +01:00
parent 110025afab
commit c915fdbfc7

View File

@@ -829,21 +829,16 @@ OUString SAL_CALL ValueItemAcc::getAccessibleDescription()
OUString SAL_CALL ValueItemAcc::getAccessibleName()
{
const SolarMutexGuard aSolarGuard;
OUString aRet;
if( mpParent )
{
aRet = mpParent->maText;
if( aRet.isEmpty() )
{
OUStringBuffer aBuffer("Item ");
aBuffer.append(static_cast<sal_Int32>(mpParent->mnId));
aRet = aBuffer.makeStringAndClear();
}
if (mpParent->maText.isEmpty())
return "Item " + OUString::number(static_cast<sal_Int32>(mpParent->mnId));
else
return mpParent->maText;
}
return aRet;
return OUString();
}