summaryrefslogtreecommitdiffstats
path: root/include/rtl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-10-14 11:42:20 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-10-14 15:48:38 +0200
commit77d083f2cbe496274cdab38a3a34497d1b742d86 (patch)
tree7092c7dbd5d746deb30565d8670dd79246327b58 /include/rtl
parentassert fires after help hides find & replace dialog (diff)
downloadcore-77d083f2cbe496274cdab38a3a34497d1b742d86.tar.gz
core-77d083f2cbe496274cdab38a3a34497d1b742d86.zip
New loplugin:getstr
...to find matches of ... << s.getStr() (for the rtl string classes) that can be written as just ... << s Some notes: * The OUStringToOString(..., RTL_TEXTENCODING_UTF8) is left explicit in desktop/source/app/crashreport.cxx (even though that would also be done internally by the "<< OUString" operator) to clarify that these values are written out as UTF-8 (and not as what that operator << happens to use, which just also happens to be UTF-8). * OUSTRING_TO_CSTR (include/oox/helper/helper.hxx) is no longer used now. * Just don't bother to use osl_getThreadTextEncoding() in the SAL_WARN in lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx. * The toUtf8() in the SAL_DEBUG in pyuno/source/module/pyuno_module.cxx can just go, too. Change-Id: I4602f0379ef816bff310f1e51b57c56b7e3f0136 Reviewed-on: https://gerrit.libreoffice.org/80762 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/rtl')
-rw-r--r--include/rtl/ustring.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rtl/ustring.hxx b/include/rtl/ustring.hxx
index a7ede5f9a32a..a2bb6c09c086 100644
--- a/include/rtl/ustring.hxx
+++ b/include/rtl/ustring.hxx
@@ -3766,7 +3766,7 @@ inline std::basic_ostream<charT, traits> & operator <<(
std::basic_ostream<charT, traits> & stream, OUString const & rString)
{
return stream <<
- OUStringToOString(rString, RTL_TEXTENCODING_UTF8).getStr();
+ OUStringToOString(rString, RTL_TEXTENCODING_UTF8);
// best effort; potentially loses data due to conversion failures
// (stray surrogate halves) and embedded null characters
}