diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-10-08 14:03:03 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-10-08 14:05:58 +0100 |
commit | 9914e44400524a2ffafd1efbd7f717281af27a74 (patch) | |
tree | f5878834d64b965214aeae22e9016865fd1d98ba | |
parent | 97527649bc03e9db1f74f788884c3f5211427a4e (diff) |
can drop casts now
Change-Id: If54ee50dd3d3d856257882c40e4424bbbe3eac45
-rw-r--r-- | sc/source/core/tool/rangeutl.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/core/tool/rangeutl.cxx b/sc/source/core/tool/rangeutl.cxx index 1d32cb24e9a9..e5a8acbf9525 100644 --- a/sc/source/core/tool/rangeutl.cxx +++ b/sc/source/core/tool/rangeutl.cxx @@ -503,17 +503,17 @@ sal_Bool ScRangeStringConverter::GetRangeFromString( // This isn't parsed by ScRange, so try to parse the two Addresses then. if (!bResult) { - bResult = ((rRange.aStart.Parse( aUIString.copy(0, (xub_StrLen)nIndex), const_cast<ScDocument*>(pDocument), + bResult = ((rRange.aStart.Parse( aUIString.copy(0, nIndex), const_cast<ScDocument*>(pDocument), eConv) & SCA_VALID) == SCA_VALID) && - ((rRange.aEnd.Parse( aUIString.copy((xub_StrLen)nIndex+1), const_cast<ScDocument*>(pDocument), + ((rRange.aEnd.Parse( aUIString.copy(nIndex+1), const_cast<ScDocument*>(pDocument), eConv) & SCA_VALID) == SCA_VALID); ::formula::FormulaGrammar::AddressConvention eConvUI = pDocument->GetAddressConvention(); if (!bResult && eConv != eConvUI) { - bResult = ((rRange.aStart.Parse( aUIString.copy(0, (xub_StrLen)nIndex), const_cast<ScDocument*>(pDocument), + bResult = ((rRange.aStart.Parse( aUIString.copy(0, nIndex), const_cast<ScDocument*>(pDocument), eConvUI) & SCA_VALID) == SCA_VALID) && - ((rRange.aEnd.Parse( aUIString.copy((xub_StrLen)nIndex+1), const_cast<ScDocument*>(pDocument), + ((rRange.aEnd.Parse( aUIString.copy(nIndex+1), const_cast<ScDocument*>(pDocument), eConvUI) & SCA_VALID) == SCA_VALID); } } |