diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-08 14:05:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-08 20:44:43 +0200 |
commit | 3e7679738413054c7e6ce973380eac501bf41cf2 (patch) | |
tree | ad80f5bd2f11020fa864488792b6cc0e98a00207 /vcl/source/pdf | |
parent | 3bfac2a7fad9737f31443292699bd6fee6ac3a6f (diff) |
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/pdf')
-rw-r--r-- | vcl/source/pdf/PDFiumLibrary.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/vcl/source/pdf/PDFiumLibrary.cxx b/vcl/source/pdf/PDFiumLibrary.cxx index e3f9baa98897..d02e2a0bab49 100644 --- a/vcl/source/pdf/PDFiumLibrary.cxx +++ b/vcl/source/pdf/PDFiumLibrary.cxx @@ -24,7 +24,7 @@ #include <vcl/bitmap.hxx> #include <tools/stream.hxx> #include <tools/UnitConversion.hxx> -#include <comphelper/string.hxx> +#include <o3tl/string_view.hxx> #include <bitmap/BitmapWriteAccess.hxx> @@ -582,12 +582,12 @@ util::DateTime PDFiumSignatureImpl::getTime() OString aM(aTimeBuf.data(), aTimeBuf.size() - 1); if (aM.startsWith("D:") && aM.getLength() >= 16) { - aRet.Year = comphelper::string::toInt32(aM.subView(2, 4)); - aRet.Month = comphelper::string::toInt32(aM.subView(6, 2)); - aRet.Day = comphelper::string::toInt32(aM.subView(8, 2)); - aRet.Hours = comphelper::string::toInt32(aM.subView(10, 2)); - aRet.Minutes = comphelper::string::toInt32(aM.subView(12, 2)); - aRet.Seconds = comphelper::string::toInt32(aM.subView(14, 2)); + aRet.Year = o3tl::toInt32(aM.subView(2, 4)); + aRet.Month = o3tl::toInt32(aM.subView(6, 2)); + aRet.Day = o3tl::toInt32(aM.subView(8, 2)); + aRet.Hours = o3tl::toInt32(aM.subView(10, 2)); + aRet.Minutes = o3tl::toInt32(aM.subView(12, 2)); + aRet.Seconds = o3tl::toInt32(aM.subView(14, 2)); } return aRet; } |