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

Do not use indexing for single getToken call

Change-Id: Ia5282e3c03dd4225fb1438300b8cad9c95be8721
Reviewed-on: https://gerrit.libreoffice.org/65661
Tested-by: Jenkins
Reviewed-by: 's avatarMatteo Casalin <matteo.casalin@yahoo.com>
üst d94e6be5
......@@ -708,8 +708,7 @@ IMPL_LINK( ObjectPage, ButtonHdl, Button *, pButton, void )
// extract the module name from the string like "Sheet1 (Example1)"
if( aDesc.GetLibSubName() == IDEResId(RID_STR_DOCUMENT_OBJECTS) )
{
sal_Int32 nIndex = 0;
aModName = aModName.getToken( 0, ' ', nIndex );
aModName = aModName.getToken( 0, ' ' );
}
SbxItem aSbxItem( SID_BASICIDE_ARG_SBX, aDesc.GetDocument(), aDesc.GetLibName(),
aModName, TreeListBox::ConvertType( aDesc.GetType() ) );
......
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