From 04fbaff283c52ae42e05f64a5cc353b17a537183 Mon Sep 17 00:00:00 2001 From: Matteo Casalin Date: Sat, 9 Feb 2019 18:06:09 +0100 Subject: Use indexed getToken() Change-Id: Iee411b9f8af7f123d0b13051ba6266d65ebb10ac Reviewed-on: https://gerrit.libreoffice.org/67622 Tested-by: Jenkins Reviewed-by: Matteo Casalin --- svx/source/fmcomp/dbaexchange.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'svx/source/fmcomp') 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(_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; } -- cgit