summaryrefslogtreecommitdiff
path: root/sw/source/core/access/acchyperlink.cxx
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2013-07-28 16:40:20 +0200
committerLuboš Luňák <l.lunak@suse.cz>2013-07-30 14:40:30 +0000
commit31ab7f0c7d20f1d7be5ce818d0d99b6bd5a8edde (patch)
treef3e2407665932d3467deee25ecbaf588b9e88bd8 /sw/source/core/access/acchyperlink.cxx
parent1c48e4efa2369e5708798bdefb46b74a86415d00 (diff)
String to OUString
Change-Id: I8d4f62b473ad43807621a9dbb826ed33857b737e Reviewed-on: https://gerrit.libreoffice.org/5189 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
Diffstat (limited to 'sw/source/core/access/acchyperlink.cxx')
-rw-r--r--sw/source/core/access/acchyperlink.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/sw/source/core/access/acchyperlink.cxx b/sw/source/core/access/acchyperlink.cxx
index 75e227c49c01..d93217e0c157 100644
--- a/sw/source/core/access/acchyperlink.cxx
+++ b/sw/source/core/access/acchyperlink.cxx
@@ -75,7 +75,7 @@ sal_Bool SAL_CALL SwAccessibleHyperlink::doAccessibleAction( sal_Int32 nIndex )
if( pTxtAttr && 0 == nIndex )
{
const SwFmtINetFmt& rINetFmt = pTxtAttr->GetINetFmt();
- if( rINetFmt.GetValue().Len() )
+ if( !rINetFmt.GetValue().isEmpty() )
{
ViewShell *pVSh = xPara->GetShell();
if( pVSh )
@@ -102,16 +102,14 @@ OUString SAL_CALL SwAccessibleHyperlink::getAccessibleActionDescription(
sal_Int32 nIndex )
throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
{
- OUString sDesc;
-
const SwTxtAttr *pTxtAttr = GetTxtAttr();
if( pTxtAttr && 0 == nIndex )
{
const SwFmtINetFmt& rINetFmt = pTxtAttr->GetINetFmt();
- sDesc = OUString( rINetFmt.GetValue() );
+ return rINetFmt.GetValue();
}
- return sDesc;
+ return OUString();
}
uno::Reference< XAccessibleKeyBinding > SAL_CALL