From 3e7679738413054c7e6ce973380eac501bf41cf2 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 8 Apr 2022 14:05:30 +0200 Subject: move comphelper::string::toInt32 to o3tl so we can use it in places where we cannot include comphelper Change-Id: Iba0ba3e4c0dcf0f9d1f09092a77c3b2010ec4f6d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132732 Tested-by: Jenkins Reviewed-by: Noel Grandin --- oox/source/vml/vmlshape.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'oox/source/vml/vmlshape.cxx') diff --git a/oox/source/vml/vmlshape.cxx b/oox/source/vml/vmlshape.cxx index a0768503560b..c5ccb9346289 100644 --- a/oox/source/vml/vmlshape.cxx +++ b/oox/source/vml/vmlshape.cxx @@ -69,7 +69,7 @@ #include #include #include -#include +#include using ::com::sun::star::beans::XPropertySet; using ::com::sun::star::uno::Any; @@ -314,7 +314,7 @@ void ShapeBase::finalizeFragmentImport() static const OUStringLiteral sShapeTypePrefix = u"shapetype_"; OUString tmp; if (aType.startsWith(sShapeTypePrefix)) { - maTypeModel.moShapeType = comphelper::string::toInt32(aType.subView(sShapeTypePrefix.getLength())); + maTypeModel.moShapeType = o3tl::toInt32(aType.subView(sShapeTypePrefix.getLength())); } else if (aType.startsWith("_x0000_t", &tmp)) { maTypeModel.moShapeType = tmp.toInt32(); @@ -378,8 +378,8 @@ Reference< XShape > ShapeBase::convertAndInsert( const Reference< XShapes >& rxS if (idPos < seqPos) { auto idPosEnd = idPos+2; - id = comphelper::string::toInt32(sLinkChainName.subView(idPosEnd, seqPos - idPosEnd)); - seq = comphelper::string::toInt32(sLinkChainName.subView(seqPos+2)); + id = o3tl::toInt32(sLinkChainName.subView(idPosEnd, seqPos - idPosEnd)); + seq = o3tl::toInt32(sLinkChainName.subView(seqPos+2)); } } -- cgit