summaryrefslogtreecommitdiff
path: root/svx/source/fmcomp
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2019-02-09 18:06:09 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2019-02-14 07:37:22 +0100
commit04fbaff283c52ae42e05f64a5cc353b17a537183 (patch)
treeb0f56fe34ef5b98837558f7fe2e07004d161513a /svx/source/fmcomp
parentb672d6697a85e46a5b552e727eaad1eb97991bbe (diff)
Use indexed getToken()
Change-Id: Iee411b9f8af7f123d0b13051ba6266d65ebb10ac Reviewed-on: https://gerrit.libreoffice.org/67622 Tested-by: Jenkins Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'svx/source/fmcomp')
-rw-r--r--svx/source/fmcomp/dbaexchange.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/svx/source/fmcomp/dbaexchange.cxx b/svx/source/fmcomp/dbaexchange.cxx
index 00014f83244c..a01525cfc00d 100644
--- a/svx/source/fmcomp/dbaexchange.cxx
+++ b/svx/source/fmcomp/dbaexchange.cxx
@@ -331,10 +331,11 @@ namespace svx
(void)const_cast<TransferableDataHelper&>(_rData).GetString(nRecognizedFormat, sFieldDescription);
const sal_Unicode cSeparator = u'\x000B';
- _rDatasource = sFieldDescription.getToken(0, cSeparator);
- _rCommand = sFieldDescription.getToken(1, cSeparator);
- _nCommandType = sFieldDescription.getToken(2, cSeparator).toInt32();
- _rFieldName = sFieldDescription.getToken(3, cSeparator);
+ sal_Int32 nIdx{ 0 };
+ _rDatasource = sFieldDescription.getToken(0, cSeparator, nIdx);
+ _rCommand = sFieldDescription.getToken(0, cSeparator, nIdx);
+ _nCommandType = sFieldDescription.getToken(0, cSeparator, nIdx).toInt32();
+ _rFieldName = sFieldDescription.getToken(0, cSeparator, nIdx);
return true;
}