dbaccess/source/ui/dlg/CollectionView.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit da03a266826111732e4366d06f4598429f5d7d0d Author: Matteo Casalin <[email protected]> AuthorDate: Fri Dec 28 12:06:04 2018 +0100 Commit: Matteo Casalin <[email protected]> CommitDate: Fri Dec 28 20:18:40 2018 +0100 Use copy instead of getToken to get last token Change-Id: I86012d0e70e67c33dbc90aa7e3b2263bed9d133c Reviewed-on: https://gerrit.libreoffice.org/65682 Tested-by: Jenkins Reviewed-by: Matteo Casalin <[email protected]> diff --git a/dbaccess/source/ui/dlg/CollectionView.cxx b/dbaccess/source/ui/dlg/CollectionView.cxx index fc978b310450..c9cd2f991682 100644 --- a/dbaccess/source/ui/dlg/CollectionView.cxx +++ b/dbaccess/source/ui/dlg/CollectionView.cxx @@ -241,8 +241,7 @@ IMPL_LINK_NOARG(OCollectionView, Dbl_Click_FileView, SvTreeListBox*, bool) if ( xNameAccess.is() ) { OUString sSubFolder = m_pView->GetCurrentURL(); - sal_Int32 nIndex = sSubFolder.lastIndexOf('/') + 1; - sSubFolder = sSubFolder.getToken(0,'/',nIndex); + sSubFolder = sSubFolder.copy(sSubFolder.lastIndexOf('/') + 1); if ( !sSubFolder.isEmpty() ) { Reference< XContent> xContent; _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
