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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user