[Libreoffice-commits] core.git: dbaccess/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Dec 28 23:00:52 UTC 2018


 dbaccess/source/core/dataaccess/myucp_datasupplier.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 7dc8f5144b2ae062c8fc3563e66cd080bd102c93
Author:     Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Fri Dec 28 11:45:31 2018 +0100
Commit:     Matteo Casalin <matteo.casalin at 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.casalin at 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);
 


More information about the Libreoffice-commits mailing list