summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2018-11-27 23:10:05 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2018-12-28 16:49:27 +0100
commitc877e2e22bd045f3f6b05bf185b30ed32e7f0b39 (patch)
treee359f0cf01a659d5ebf84754aa3e5b93d1046b79 /chart2
parenta33c2a1ad09f834207b15e664e5b30a21c50b3ab (diff)
Use indexed getToken
Change-Id: Ia44cbd763d06948fcf7f7633d0ee0b1aaeeda84a Reviewed-on: https://gerrit.libreoffice.org/65664 Tested-by: Jenkins Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/qa/extras/chart2dump/chart2dump.cxx19
1 files changed, 10 insertions, 9 deletions
diff --git a/chart2/qa/extras/chart2dump/chart2dump.cxx b/chart2/qa/extras/chart2dump/chart2dump.cxx
index e06ce2f76415..001382bbfe39 100644
--- a/chart2/qa/extras/chart2dump/chart2dump.cxx
+++ b/chart2/qa/extras/chart2dump/chart2dump.cxx
@@ -203,15 +203,16 @@ protected:
// Convert string back to a transformation;
drawing::HomogenMatrix3 aExpectedTransform;
- aExpectedTransform.Line1.Column1 = rExpectedTranform.getToken(0, ';').toDouble();
- aExpectedTransform.Line1.Column2 = rExpectedTranform.getToken(1, ';').toDouble();
- aExpectedTransform.Line1.Column3 = rExpectedTranform.getToken(2, ';').toDouble();
- aExpectedTransform.Line2.Column1 = rExpectedTranform.getToken(3, ';').toDouble();
- aExpectedTransform.Line2.Column2 = rExpectedTranform.getToken(4, ';').toDouble();
- aExpectedTransform.Line2.Column3 = rExpectedTranform.getToken(5, ';').toDouble();
- aExpectedTransform.Line3.Column1 = rExpectedTranform.getToken(6, ';').toDouble();
- aExpectedTransform.Line3.Column2 = rExpectedTranform.getToken(7, ';').toDouble();
- aExpectedTransform.Line3.Column3 = rExpectedTranform.getToken(8, ';').toDouble();
+ sal_Int32 nIdx {0};
+ aExpectedTransform.Line1.Column1 = rExpectedTranform.getToken(0, ';', nIdx).toDouble();
+ aExpectedTransform.Line1.Column2 = rExpectedTranform.getToken(0, ';', nIdx).toDouble();
+ aExpectedTransform.Line1.Column3 = rExpectedTranform.getToken(0, ';', nIdx).toDouble();
+ aExpectedTransform.Line2.Column1 = rExpectedTranform.getToken(0, ';', nIdx).toDouble();
+ aExpectedTransform.Line2.Column2 = rExpectedTranform.getToken(0, ';', nIdx).toDouble();
+ aExpectedTransform.Line2.Column3 = rExpectedTranform.getToken(0, ';', nIdx).toDouble();
+ aExpectedTransform.Line3.Column1 = rExpectedTranform.getToken(0, ';', nIdx).toDouble();
+ aExpectedTransform.Line3.Column2 = rExpectedTranform.getToken(0, ';', nIdx).toDouble();
+ aExpectedTransform.Line3.Column3 = rExpectedTranform.getToken(0, ';', nIdx).toDouble();
// Check the equality of the two transformation
return (std::abs(aExpectedTransform.Line1.Column1 - rTransform.Line1.Column1) < fEPS &&