dbaccess/source/core/dataaccess/myucp_datasupplier.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit 7dc8f5144b2ae062c8fc3563e66cd080bd102c93 Author: Matteo Casalin <matteo.casa...@yahoo.com> AuthorDate: Fri Dec 28 11:45:31 2018 +0100 Commit: Matteo Casalin <matteo.casa...@yahoo.com> CommitDate: Sat Dec 29 00:00:32 2018 +0100 Use copy instead of getToken to get last token Change-Id: I6603f108a3079dd2329b6b6b7f88289e0a913683 Reviewed-on: https://gerrit.libreoffice.org/65678 Tested-by: Jenkins Reviewed-by: Matteo Casalin <matteo.casa...@yahoo.com> diff --git a/dbaccess/source/core/dataaccess/myucp_datasupplier.cxx b/dbaccess/source/core/dataaccess/myucp_datasupplier.cxx index 4eb8d4906b6d..f1d03b10e915 100644 --- a/dbaccess/source/core/dataaccess/myucp_datasupplier.cxx +++ b/dbaccess/source/core/dataaccess/myucp_datasupplier.cxx @@ -160,8 +160,7 @@ DataSupplier::queryContent( sal_uInt32 _nIndex ) { Reference< XContent > xContent; OUString sName = xId->getContentIdentifier(); - sal_Int32 nIndex = sName.lastIndexOf('/') + 1; - sName = sName.getToken(0,'/',nIndex); + sName = sName.copy(sName.lastIndexOf('/')+1); m_pImpl->m_aResults[ _nIndex ]->xContent = m_pImpl->m_xContent->getContent(sName); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits