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

Precalculate all needed tokens and use indexing

Change-Id: If83e1b89e0116f0b20549daf839bd24621c926be
Reviewed-on: https://gerrit.libreoffice.org/67647
Tested-by: Jenkins
Reviewed-by: 's avatarMatteo Casalin <matteo.casalin@yahoo.com>
üst 59c73b8d
......@@ -900,11 +900,15 @@ bool FuDraw::SetHelpText(SdrObject* pObj, const Point& rPosPixel, const SdrViewE
else
{
OUString sBookmark( pInfo->GetBookmark() );
aHelpText += sBookmark.getToken( 2, '.' );
sal_Int32 nIdx{ 0 };
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 += sBookmark.getToken( 1, '.' );
aHelpText += s1;
aHelpText += ".";
aHelpText += sBookmark.getToken( 0, '.' );
aHelpText += 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