Kaydet (Commit) 426f91e9 authored tarafından Matteo Casalin's avatar Matteo Casalin

Use optimized OUString concatenation

Change-Id: I7093167a5a8ff70dcc1227bd878e70f60c22a288
Reviewed-on: https://gerrit.libreoffice.org/67648
Tested-by: Jenkins
Reviewed-by: 's avatarMatteo Casalin <matteo.casalin@yahoo.com>
üst 29cc83fc
......@@ -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;
......
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