diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-26 13:27:39 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-26 19:37:20 +0200 |
commit | 5fe702f1b69a02a274621a01db68256a94edfd36 (patch) | |
tree | 8b07b80a9046040ba7da685e4063f5f21e1f0eaa /tools/source/generic | |
parent | cf2dc247ff5f726238856e9b46a4926a30430e14 (diff) |
add o3tl::toUInt32
Change-Id: I07f11bf12fbe1d1c2d812fa0965d6e632e1e1aba
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133437
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'tools/source/generic')
-rw-r--r-- | tools/source/generic/color.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/source/generic/color.cxx b/tools/source/generic/color.cxx index 5df32719eb2c..0493b5250f62 100644 --- a/tools/source/generic/color.cxx +++ b/tools/source/generic/color.cxx @@ -27,6 +27,7 @@ #include <tools/color.hxx> #include <tools/helpers.hxx> #include <tools/long.hxx> +#include <o3tl/string_view.hxx> #include <basegfx/color/bcolortools.hxx> void Color::IncreaseLuminance(sal_uInt8 cLumInc) @@ -165,7 +166,7 @@ Color Color::STRtoRGB(const OUString& colorname) switch(colorname.getLength()){ case 7: - col.mValue = colorname.copy(1,6).toUInt32(16); + col.mValue = o3tl::toUInt32(colorname.subView(1,6), 16); break; case 6: col.mValue = colorname.toUInt32(16); |