diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-09-16 08:39:44 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-10-27 13:59:07 +0100 |
commit | d6e2d2430db084b8c2293d0135d8035a6a8b71c5 (patch) | |
tree | 0ab5b3b43f149b29cfb941bb0274d59ea36e6769 /sc/source | |
parent | a9d9b1e00b1cadf2383ad97d4c5f13be344f8832 (diff) |
Use positioned getToken in ScAsciiOptions::ReadFromString (2)
Change-Id: I1e91aa9da6fa3ead16ee8f7628dd8c44a7540238
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/dbgui/asciiopt.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sc/source/ui/dbgui/asciiopt.cxx b/sc/source/ui/dbgui/asciiopt.cxx index c212a64ff195..2b41ff910a95 100644 --- a/sc/source/ui/dbgui/asciiopt.cxx +++ b/sc/source/ui/dbgui/asciiopt.cxx @@ -242,10 +242,11 @@ void ScAsciiOptions::ReadFromString( const OUString& rString ) { pColStart = new sal_Int32[nInfoCount]; pColFormat = new sal_uInt8[nInfoCount]; - for (sal_uInt16 nInfo=0; nInfo<nInfoCount; nInfo++) + sal_Int32 nP = 0; + for (sal_Int32 nInfo=0; nInfo<nInfoCount; ++nInfo) { - pColStart[nInfo] = (sal_Int32) aToken.getToken( 2*nInfo, '/' ).toInt32(); - pColFormat[nInfo] = (sal_uInt8) aToken.getToken( 2*nInfo+1, '/' ).toInt32(); + pColStart[nInfo] = aToken.getToken(0, '/', nP).toInt32(); + pColFormat[nInfo] = static_cast<sal_uInt8>(aToken.getToken(0, '/', nP).toInt32()); } } else |