summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-04-24 11:01:43 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-04-24 12:45:22 +0200
commitdba55c304a330a355147a39e53ec4c7cf5c5c3f5 (patch)
treedab1da47f32006f6d4362f492f0c8d6255737b5d /tools
parent8505d29d61a76ffa506be0dc86fe2ec7ed647483 (diff)
loplugin:unnecessarygetstr extend to createFromAscii
idea from mike kaganski Change-Id: I0ecb9cad091d7a048d2ddae73165bf22748f3872 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150907 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/source/generic/color.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/source/generic/color.cxx b/tools/source/generic/color.cxx
index 1c740f03df03..421045b588a9 100644
--- a/tools/source/generic/color.cxx
+++ b/tools/source/generic/color.cxx
@@ -195,14 +195,14 @@ OUString Color::AsRGBHexString() const
{
std::stringstream ss;
ss << std::hex << std::setfill ('0') << std::setw(6) << sal_uInt32(GetRGBColor());
- return OUString::createFromAscii(ss.str().c_str());
+ return OUString::createFromAscii(ss.str());
}
OUString Color::AsRGBHEXString() const
{
std::stringstream ss;
ss << std::hex << std::uppercase << std::setfill ('0') << std::setw(6) << sal_uInt32(GetRGBColor());
- return OUString::createFromAscii(ss.str().c_str());
+ return OUString::createFromAscii(ss.str());
}
void Color::ApplyTintOrShade(sal_Int16 n100thPercent)