summaryrefslogtreecommitdiff
path: root/unoxml/source
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
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')
-rw-r--r--unoxml/source/dom/node.cxx2
-rw-r--r--unoxml/source/rdf/librdf_repository.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/unoxml/source/dom/node.cxx b/unoxml/source/dom/node.cxx
index f39aba6bd079..235af0bc5e0d 100644
--- a/unoxml/source/dom/node.cxx
+++ b/unoxml/source/dom/node.cxx
@@ -101,7 +101,7 @@ namespace DOM
{
sal_Int32 nNamespaceToken = FastToken::DONTKNOW;
OString prefix(pPrefix,
- strlen(reinterpret_cast<const char*>(pPrefix)));
+ strlen(pPrefix));
SAL_INFO("unoxml", "getTokenWithPrefix(): prefix " << pPrefix << ", name " << pName);
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) {