[Libreoffice-commits] core.git: sw/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Feb 8 18:33:32 UTC 2019
sw/source/filter/xml/xmltble.cxx | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
New commits:
commit be75c3ea3037522d4abcf08d3f383d6df5f7e493
Author: Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Fri Feb 1 07:43:52 2019 +0100
Commit: Matteo Casalin <matteo.casalin at yahoo.com>
CommitDate: Fri Feb 8 19:32:58 2019 +0100
Use indexed getToken()
Change-Id: I3c1df346c56bfbd6e885b5ddb78ac3162a8bc32e
Reviewed-on: https://gerrit.libreoffice.org/67327
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin at yahoo.com>
diff --git a/sw/source/filter/xml/xmltble.cxx b/sw/source/filter/xml/xmltble.cxx
index 58ef026cf7e1..a726de4124cb 100644
--- a/sw/source/filter/xml/xmltble.cxx
+++ b/sw/source/filter/xml/xmltble.cxx
@@ -1112,12 +1112,13 @@ void SwXMLExport::ExportTable( const SwTableNode& rTableNd )
// DDE command
const OUString& sCmd = pDDEFieldType->GetCmd();
+ sal_Int32 nIdx{ 0 };
AddAttribute( XML_NAMESPACE_OFFICE, XML_DDE_APPLICATION,
- sCmd.getToken(0, sfx2::cTokenSeparator) );
+ sCmd.getToken(0, sfx2::cTokenSeparator, nIdx) );
AddAttribute( XML_NAMESPACE_OFFICE, XML_DDE_ITEM,
- sCmd.getToken(1, sfx2::cTokenSeparator) );
+ sCmd.getToken(0, sfx2::cTokenSeparator, nIdx) );
AddAttribute( XML_NAMESPACE_OFFICE, XML_DDE_TOPIC,
- sCmd.getToken(2, sfx2::cTokenSeparator) );
+ sCmd.getToken(0, sfx2::cTokenSeparator, nIdx) );
// auto update
if (pDDEFieldType->GetType() == SfxLinkUpdateMode::ALWAYS)
More information about the Libreoffice-commits
mailing list