summaryrefslogtreecommitdiff
path: root/o3tl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-04-24 11:37:48 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-04-24 18:04:50 +0200
commit5c1561561a859c561fb2321420f1abb7f1cedde3 (patch)
tree7a96cf8b32bd4c088298df3c4067f0d81f549057 /o3tl
parent5e6d8efbf3fb456ca370df04b21d2e340d9831ad (diff)
loplugin:unnecessarygetstr extend to more std::string checking
suggested by mike kaganski Change-Id: I5f5f254142767aca45a6101abdd84a0163ca6a34 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150936 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'o3tl')
-rw-r--r--o3tl/qa/test-string_view.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/o3tl/qa/test-string_view.cxx b/o3tl/qa/test-string_view.cxx
index a95afc923c2c..6569d9267705 100644
--- a/o3tl/qa/test-string_view.cxx
+++ b/o3tl/qa/test-string_view.cxx
@@ -27,7 +27,7 @@ template <>
inline std::string
CppUnit::assertion_traits<std::u16string_view>::toString(std::u16string_view const& x)
{
- return OUStringToOString(x, RTL_TEXTENCODING_UTF8).getStr();
+ return std::string(OUStringToOString(x, RTL_TEXTENCODING_UTF8));
}
namespace