diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2023-11-08 08:41:12 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-11-08 14:32:49 +0100 |
commit | e624979ce4e06f34ce8c8e8c2ee5c2b5a9a10f57 (patch) | |
tree | f6116daae1093b0ff3e92282888885ef92693232 /shell/source | |
parent | 3cd08e3b3c06336b0fb71c9f162796ce0f00f6fd (diff) |
loplugin:unnecessarygetstr (clang-cl)
Change-Id: Ic0ec1614d48382bb5735a67bf9588657b9ebd521
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159106
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'shell/source')
-rw-r--r-- | shell/source/tools/lngconvex/lngconvex.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
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 { |