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

Use copy instead of getToken to get last token

Change-Id: I6603f108a3079dd2329b6b6b7f88289e0a913683
Reviewed-on: https://gerrit.libreoffice.org/65678
Tested-by: Jenkins
Reviewed-by: 's avatarMatteo Casalin <matteo.casalin@yahoo.com>
üst 928f84e9
...@@ -160,8 +160,7 @@ DataSupplier::queryContent( sal_uInt32 _nIndex ) ...@@ -160,8 +160,7 @@ DataSupplier::queryContent( sal_uInt32 _nIndex )
{ {
Reference< XContent > xContent; Reference< XContent > xContent;
OUString sName = xId->getContentIdentifier(); OUString sName = xId->getContentIdentifier();
sal_Int32 nIndex = sName.lastIndexOf('/') + 1; sName = sName.copy(sName.lastIndexOf('/')+1);
sName = sName.getToken(0,'/',nIndex);
m_pImpl->m_aResults[ _nIndex ]->xContent = m_pImpl->m_xContent->getContent(sName); m_pImpl->m_aResults[ _nIndex ]->xContent = m_pImpl->m_xContent->getContent(sName);
......
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