[Libreoffice-commits] core.git: dbaccess/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Dec 28 16:15:49 UTC 2018
dbaccess/source/filter/xml/xmlComponent.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit bd61ef0c3421bf322714c4cb4c8bdc0424a32a56
Author: Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Fri Dec 28 11:46:10 2018 +0100
Commit: Matteo Casalin <matteo.casalin at yahoo.com>
CommitDate: Fri Dec 28 17:15:25 2018 +0100
Use copy instead of getToken to get last token
Change-Id: Ia024ded766b57f1e93e171e7d1299069505c06dc
Reviewed-on: https://gerrit.libreoffice.org/65679
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin at yahoo.com>
diff --git a/dbaccess/source/filter/xml/xmlComponent.cxx b/dbaccess/source/filter/xml/xmlComponent.cxx
index 7f928ab12877..7db3101b679d 100644
--- a/dbaccess/source/filter/xml/xmlComponent.cxx
+++ b/dbaccess/source/filter/xml/xmlComponent.cxx
@@ -81,11 +81,10 @@ OXMLComponent::OXMLComponent( ODBFilter& rImport
}
if ( !m_sHREF.isEmpty() && !m_sName.isEmpty() && _xParentContainer.is() )
{
- sal_Int32 nIndex = m_sHREF.lastIndexOf('/')+1;
Sequence<Any> aArguments(comphelper::InitAnyPropertySequence(
{
{PROPERTY_NAME, Any(m_sName)}, // set as folder
- {PROPERTY_PERSISTENT_NAME, Any(m_sHREF.getToken(0,'/',nIndex))},
+ {PROPERTY_PERSISTENT_NAME, Any(m_sHREF.copy(m_sHREF.lastIndexOf('/')+1))},
{PROPERTY_AS_TEMPLATE, Any(m_bAsTemplate)},
}));
try
More information about the Libreoffice-commits
mailing list