Kaydet (Commit) c915fdbf authored tarafından Julien Nabet's avatar Julien Nabet

Replace OUStringBuffer in valueacc (svtools)

Change-Id: I8b40c0c29154e8b4162e55dc202bfb0233c79a61
Reviewed-on: https://gerrit.libreoffice.org/48072Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
üst 110025af
...@@ -829,21 +829,16 @@ OUString SAL_CALL ValueItemAcc::getAccessibleDescription() ...@@ -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();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment