From e624979ce4e06f34ce8c8e8c2ee5c2b5a9a10f57 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 8 Nov 2023 08:41:12 +0100 Subject: loplugin:unnecessarygetstr (clang-cl) Change-Id: Ic0ec1614d48382bb5735a67bf9588657b9ebd521 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159106 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- shell/source/tools/lngconvex/lngconvex.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'shell/source') diff --git a/shell/source/tools/lngconvex/lngconvex.cxx b/shell/source/tools/lngconvex/lngconvex.cxx index 546d76653dca..f016d01f7133 100644 --- a/shell/source/tools/lngconvex/lngconvex.cxx +++ b/shell/source/tools/lngconvex/lngconvex.cxx @@ -113,7 +113,7 @@ OUString get_absolute_path( std::string make_absolute(const std::string& file_name) { OUString fp = get_absolute_path( - get_module_path(), OStringToOUString(file_name.c_str())); + get_module_path(), OStringToOUString(file_name)); return std::string(OUStringToOString(fp)); } @@ -157,7 +157,7 @@ public: { return OStringToOUString( maBcp47, RTL_TEXTENCODING_ASCII_US); } std::string make_std_string() const - { return maBcp47.getStr(); } + { return std::string(maBcp47); } private: OString maBcp47; @@ -184,7 +184,7 @@ std::string make_winrc_unicode_string(const OUString& str) std::string make_winrc_unicode_string(const std::string& str) { return make_winrc_unicode_string( - OUString::createFromAscii(str.c_str())); + OUString::createFromAscii(str)); } /** A replacement table contains pairs of @@ -272,8 +272,8 @@ void add_group_entries( OStringToOUString(key_value_utf8, RTL_TEXTENCODING_UTF8); Substitutor.add_substitution( - GroupName.getStr(), make_winrc_unicode_string(key_value_utf16)); - map[ ltype ] = std::string( iso_lang.getStr() ); + std::string(GroupName), make_winrc_unicode_string(key_value_utf16)); + map[ ltype ] = std::string( iso_lang ); } else { -- cgit