diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-04-21 10:12:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-04-21 21:46:09 +0200 |
commit | f712c531336b2c44636a35ad682913550640e0d3 (patch) | |
tree | 17f96584923f9de4945479eb67d65fa7b2a2331e /lingucomponent | |
parent | 90cbe03a0bd65151c197d3d4aeaf48a696f13fad (diff) |
loplugin:unnecessarygetstr extend to checking std::string::c_str
Change-Id: I17398e2a6a31a2c98ba8e54b5c8045f22aee8759
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150749
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'lingucomponent')
-rw-r--r-- | lingucomponent/source/numbertext/numbertext.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lingucomponent/source/numbertext/numbertext.cxx b/lingucomponent/source/numbertext/numbertext.cxx index 79c8e6810041..4f868adb74d8 100644 --- a/lingucomponent/source/numbertext/numbertext.cxx +++ b/lingucomponent/source/numbertext/numbertext.cxx @@ -130,7 +130,7 @@ OUString SAL_CALL NumberText_Impl::getNumberText(const OUString& rText, const Lo #if defined(_WIN32) OUString aResult(o3tl::toU(sResult.c_str())); #else - OUString aResult = OUString::fromUtf8(Numbertext::wstring2string(sResult).c_str()); + OUString aResult = OUString::fromUtf8(Numbertext::wstring2string(sResult)); #endif return aResult; } |