From 3d236177be255b2027a997bfc12fe0833ca9a2f7 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Tue, 11 Oct 2022 10:23:28 +0300 Subject: Deduplicate O(U)StringConcatenation And use an overloaded helper function with a better (?) unified name to show that the result is not an O(U)String. Change-Id: I8956338b05d02bf46a6185828130ea8ef145d46b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141203 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lingucomponent/source') diff --git a/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx b/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx index ef56578c9825..a2ad3efdf863 100644 --- a/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx +++ b/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx @@ -224,8 +224,8 @@ ProofreadingResult SAL_CALL LanguageToolGrammarChecker::doProofreading( tools::Long http_code = 0; OUString langTag(aLocale.Language + "-" + aLocale.Country); - OString postData(OUStringToOString( - OUStringConcatenation("text=" + aText + "&language=" + langTag), RTL_TEXTENCODING_UTF8)); + OString postData(OUStringToOString(Concat2View("text=" + aText + "&language=" + langTag), + RTL_TEXTENCODING_UTF8)); const std::string response_body = makeHttpRequest(checkerURL, HTTP_METHOD::HTTP_POST, postData, http_code); -- cgit