diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-12-28 11:45:31 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-12-29 00:00:32 +0100 |
commit | 7dc8f5144b2ae062c8fc3563e66cd080bd102c93 (patch) | |
tree | 2c8a2899db8b08d0c0f543b78c3dc67be4647c64 | |
parent | 928f84e9c041fe1febf1cdffe64cd73471071641 (diff) |
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.casalin@yahoo.com>
-rw-r--r-- | dbaccess/source/core/dataaccess/myucp_datasupplier.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
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); |