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()
|
OUString SAL_CALL ValueItemAcc::getAccessibleName()
|
||||||
{
|
{
|
||||||
const SolarMutexGuard aSolarGuard;
|
const SolarMutexGuard aSolarGuard;
|
||||||
OUString aRet;
|
|
||||||
|
|
||||||
if( mpParent )
|
if( mpParent )
|
||||||
{
|
{
|
||||||
aRet = mpParent->maText;
|
if (mpParent->maText.isEmpty())
|
||||||
|
return "Item " + OUString::number(static_cast<sal_Int32>(mpParent->mnId));
|
||||||
if( aRet.isEmpty() )
|
else
|
||||||
{
|
return mpParent->maText;
|
||||||
OUStringBuffer aBuffer("Item ");
|
|
||||||
aBuffer.append(static_cast<sal_Int32>(mpParent->mnId));
|
|
||||||
aRet = aBuffer.makeStringAndClear();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return aRet;
|
return OUString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user