summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/chart/SchXMLTableContext.cxx7
-rw-r--r--xmloff/source/meta/xmlversion.cxx1
2 files changed, 5 insertions, 3 deletions
diff --git a/xmloff/source/chart/SchXMLTableContext.cxx b/xmloff/source/chart/SchXMLTableContext.cxx
index 4d99737f56f1..6e5e7f068b01 100644
--- a/xmloff/source/chart/SchXMLTableContext.cxx
+++ b/xmloff/source/chart/SchXMLTableContext.cxx
@@ -33,6 +33,7 @@
#include <xmloff/xmltoken.hxx>
#include <xmloff/namespacemap.hxx>
#include <comphelper/sequence.hxx>
+#include <comphelper/string.hxx>
#include <com/sun/star/chart2/XAnyDescriptionAccess.hpp>
#include <com/sun/star/chart2/XDataSeriesContainer.hpp>
#include <com/sun/star/chart2/XChartDocument.hpp>
@@ -987,9 +988,9 @@ void SchXMLTableHelper::switchRangesFromOuterToInternalIfNecessary(
if( xLabel.is() )
{
aRange = xLabel->getSourceRangeRepresentation();
- OUString aSecondToken = aRange.getToken(1, ' ');
- if( !aSecondToken.isEmpty() )
- aUsageMap[aSecondToken.toInt32()] = true;
+ std::u16string_view aSecondToken = o3tl::getToken(aRange, 1, ' ');
+ if( !aSecondToken.empty() )
+ aUsageMap[o3tl::toInt32(aSecondToken)] = true;
}
}
diff --git a/xmloff/source/meta/xmlversion.cxx b/xmloff/source/meta/xmlversion.cxx
index c39d8f77f3cc..20bf6d5a2386 100644
--- a/xmloff/source/meta/xmlversion.cxx
+++ b/xmloff/source/meta/xmlversion.cxx
@@ -27,6 +27,7 @@
#include <xmloff/xmltoken.hxx>
#include <comphelper/processfactory.hxx>
+#include <comphelper/string.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/io/IOException.hpp>
#include <com/sun/star/io/XOutputStream.hpp>