summaryrefslogtreecommitdiff
path: root/xmloff/source/chart/SchXMLChartContext.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/chart/SchXMLChartContext.cxx')
-rw-r--r--xmloff/source/chart/SchXMLChartContext.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmloff/source/chart/SchXMLChartContext.cxx b/xmloff/source/chart/SchXMLChartContext.cxx
index 331a928feb97..b5aaf117cf45 100644
--- a/xmloff/source/chart/SchXMLChartContext.cxx
+++ b/xmloff/source/chart/SchXMLChartContext.cxx
@@ -57,6 +57,7 @@
#include <com/sun/star/container/XChild.hpp>
#include <com/sun/star/chart2/data/XDataReceiver.hpp>
+#include <comphelper/string.hxx>
using namespace com::sun::star;
using namespace ::xmloff::token;
@@ -180,7 +181,7 @@ uno::Sequence< sal_Int32 > lcl_getNumberSequenceFromString( const OUString& rStr
nPos = rStr.indexOf( aSpace, nLastPos );
if( nPos > nLastPos )
{
- aVec.push_back( rStr.copy( nLastPos, (nPos - nLastPos) ).toInt32() );
+ aVec.push_back( comphelper::string::toInt32(rStr.subView( nLastPos, (nPos - nLastPos) )) );
}
if( nPos != -1 )
nLastPos = nPos + 1;
@@ -189,7 +190,7 @@ uno::Sequence< sal_Int32 > lcl_getNumberSequenceFromString( const OUString& rStr
if( nLastPos != 0 &&
rStr.getLength() > nLastPos )
{
- aVec.push_back( rStr.copy( nLastPos ).toInt32() );
+ aVec.push_back( comphelper::string::toInt32(rStr.subView( nLastPos )) );
}
const sal_Int32 nVecSize = aVec.size();