summaryrefslogtreecommitdiff
path: root/xmlscript/source/xmldlg_imexp/imp_share.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmlscript/source/xmldlg_imexp/imp_share.hxx')
-rw-r--r--xmlscript/source/xmldlg_imexp/imp_share.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmlscript/source/xmldlg_imexp/imp_share.hxx b/xmlscript/source/xmldlg_imexp/imp_share.hxx
index 2cc574c01b93..3b52f683b1e0 100644
--- a/xmlscript/source/xmldlg_imexp/imp_share.hxx
+++ b/xmlscript/source/xmldlg_imexp/imp_share.hxx
@@ -36,6 +36,7 @@
#include <com/sun/star/lang/WrappedTargetRuntimeException.hpp>
#include <osl/diagnose.h>
#include <rtl/ref.hxx>
+#include <o3tl/string_view.hxx>
#include <memory>
#include <vector>
@@ -46,7 +47,7 @@ inline sal_Int32 toInt32( OUString const & rStr )
{
sal_Int32 nVal;
if (rStr.getLength() > 2 && rStr[ 0 ] == '0' && rStr[ 1 ] == 'x')
- nVal = rStr.copy( 2 ).toUInt32( 16 );
+ nVal = o3tl::toUInt32(rStr.subView( 2 ), 16);
else
nVal = rStr.toInt32();
return nVal;