summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2019-02-10 16:58:47 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2019-02-17 17:53:51 +0100
commit426f91e9aec7650b25996a91862a99367cd7d49a (patch)
tree62e1fd2759a1578e61ca1fc1fe7c42409dc4895a
parent29cc83fc4d7b7c25c1ae0410a5149eab9886f842 (diff)
Use optimized OUString concatenation
Change-Id: I7093167a5a8ff70dcc1227bd878e70f60c22a288 Reviewed-on: https://gerrit.libreoffice.org/67648 Tested-by: Jenkins Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
-rw-r--r--sd/source/ui/func/fudraw.cxx27
1 files changed, 11 insertions, 16 deletions
diff --git a/sd/source/ui/func/fudraw.cxx b/sd/source/ui/func/fudraw.cxx
index 77a6a14010b7..272c0ceee90d 100644
--- a/sd/source/ui/func/fudraw.cxx
+++ b/sd/source/ui/func/fudraw.cxx
@@ -863,35 +863,34 @@ bool FuDraw::SetHelpText(SdrObject* pObj, const Point& rPosPixel, const SdrViewE
case presentation::ClickAction_BOOKMARK:
{
// jump to object/page
- aHelpText = SdResId(STR_CLICK_ACTION_BOOKMARK);
- aHelpText += ": ";
- aHelpText += INetURLObject::decode( pInfo->GetBookmark(), INetURLObject::DecodeMechanism::WithCharset );
+ aHelpText = SdResId(STR_CLICK_ACTION_BOOKMARK)
+ + ": "
+ + INetURLObject::decode( pInfo->GetBookmark(), INetURLObject::DecodeMechanism::WithCharset );
}
break;
case presentation::ClickAction_DOCUMENT:
{
// jump to document (object/page)
- aHelpText = SdResId(STR_CLICK_ACTION_DOCUMENT);
- aHelpText += ": ";
- aHelpText += INetURLObject::decode( pInfo->GetBookmark(), INetURLObject::DecodeMechanism::WithCharset );
+ aHelpText = SdResId(STR_CLICK_ACTION_DOCUMENT)
+ + ": "
+ + INetURLObject::decode( pInfo->GetBookmark(), INetURLObject::DecodeMechanism::WithCharset );
}
break;
case presentation::ClickAction_PROGRAM:
{
// execute program
- aHelpText = SdResId(STR_CLICK_ACTION_PROGRAM);
- aHelpText += ": ";
- aHelpText += INetURLObject::decode( pInfo->GetBookmark(), INetURLObject::DecodeMechanism::WithCharset );
+ aHelpText = SdResId(STR_CLICK_ACTION_PROGRAM)
+ + ": "
+ + INetURLObject::decode( pInfo->GetBookmark(), INetURLObject::DecodeMechanism::WithCharset );
}
break;
case presentation::ClickAction_MACRO:
{
// execute program
- aHelpText = SdResId(STR_CLICK_ACTION_MACRO);
- aHelpText += ": ";
+ aHelpText = SdResId(STR_CLICK_ACTION_MACRO) + ": ";
if ( SfxApplication::IsXScriptURL( pInfo->GetBookmark() ) )
{
@@ -904,11 +903,7 @@ bool FuDraw::SetHelpText(SdrObject* pObj, const Point& rPosPixel, const SdrViewE
const OUString s0{ sBookmark.getToken( 0, '.', nIdx ) };
const OUString s1{ sBookmark.getToken( 0, '.', nIdx ) };
const OUString s2{ sBookmark.getToken( 0, '.', nIdx ) };
- aHelpText += s2;
- aHelpText += ".";
- aHelpText += s1;
- aHelpText += ".";
- aHelpText += s0;
+ aHelpText += s2 + "." + s1 + "." + s0;
}
}
break;