summaryrefslogtreecommitdiff
path: root/unoxml/source/rdf
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-05-18 09:51:46 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-05-18 10:52:59 +0200
commit41a967af06a9584a997e11079c3c931d34158c09 (patch)
tree494ca16d2d6148ad54ceacec4ab170f57efd8dd2 /unoxml/source/rdf
parent1b6ecb1dc544b7a462948a1c85d4bfc6f08865b8 (diff)
Extend loplugin:redundantcast to trivial reinterpret_cast from T to itself
Change-Id: I7c0be7b435d6b5f97bdd40484023584146638d70 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134506 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'unoxml/source/rdf')
-rw-r--r--unoxml/source/rdf/librdf_repository.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/unoxml/source/rdf/librdf_repository.cxx b/unoxml/source/rdf/librdf_repository.cxx
index 63654e09efdd..169f9550f0ea 100644
--- a/unoxml/source/rdf/librdf_repository.cxx
+++ b/unoxml/source/rdf/librdf_repository.cxx
@@ -2426,7 +2426,7 @@ librdf_TypeConverter::convertToXNode(librdf_node* i_pNode) const
RTL_TEXTENCODING_UTF8) );
if (lang) {
const OUString langU( OStringToOUString(
- std::string_view(reinterpret_cast<const char*>(lang)),
+ std::string_view(lang),
RTL_TEXTENCODING_UTF8) );
return rdf::Literal::createWithLanguage(m_xContext, valueU, langU);
} else if (pType) {