summaryrefslogtreecommitdiff
path: root/svtools/source/control/valueacc.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/control/valueacc.cxx')
-rw-r--r--svtools/source/control/valueacc.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/svtools/source/control/valueacc.cxx b/svtools/source/control/valueacc.cxx
index 37c48c2ed4b6..e6d63fa3933d 100644
--- a/svtools/source/control/valueacc.cxx
+++ b/svtools/source/control/valueacc.cxx
@@ -951,16 +951,17 @@ sal_Int16 SAL_CALL ValueItemAcc::getAccessibleRole()
throw (uno::RuntimeException)
{
const SolarMutexGuard aSolarGuard;
- String aRet;
+ rtl::OUString aRet;
if( mpParent )
{
aRet = mpParent->maText;
- if( !aRet.Len() )
+ if( aRet.isEmpty() )
{
- aRet = String( RTL_CONSTASCII_USTRINGPARAM( "Item " ) );
- aRet += String::CreateFromInt32( mpParent->mnId );
+ rtl::OUStringBuffer aBuffer("Item ");
+ aBuffer.append(static_cast<sal_Int32>(mpParent->mnId));
+ aRet = aBuffer.makeStringAndClear();
}
}