diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-12-28 12:06:04 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-12-28 20:18:40 +0100 |
commit | da03a266826111732e4366d06f4598429f5d7d0d (patch) | |
tree | de8673a34ddb63c43eb15a05a0d5f9e6b7abd851 /dbaccess/source | |
parent | 863cff6e6765208acd5dcf6e43441e2e7156628a (diff) |
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 <matteo.casalin@yahoo.com>
Diffstat (limited to 'dbaccess/source')
-rw-r--r-- | dbaccess/source/ui/dlg/CollectionView.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
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; |