[Libreoffice-commits] core.git: dbaccess/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Dec 28 19:19:02 UTC 2018
dbaccess/source/ui/dlg/CollectionView.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit da03a266826111732e4366d06f4598429f5d7d0d
Author: Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Fri Dec 28 12:06:04 2018 +0100
Commit: Matteo Casalin <matteo.casalin at yahoo.com>
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 <matteo.casalin at yahoo.com>
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;
More information about the Libreoffice-commits
mailing list