summaryrefslogtreecommitdiff
path: root/unoxml
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-07-08 16:41:18 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-07-08 16:47:31 +0200
commit167e055b91fa97063985253a8e5d73a2b712a26b (patch)
tree3e8f82732afe2be60ac7e361d61e90f2455aa55e /unoxml
parent2e23166be8a1f33ec0023b70acd8a098c0d18b84 (diff)
loplugin:redundantcast: redundant static_casts in unoxml
Change-Id: I75db798c0b7d6951fc278b91f4162fa7c7ffd79c
Diffstat (limited to 'unoxml')
-rw-r--r--unoxml/source/rdf/librdf_repository.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/unoxml/source/rdf/librdf_repository.cxx b/unoxml/source/rdf/librdf_repository.cxx
index adab630400ef..9e89c7914969 100644
--- a/unoxml/source/rdf/librdf_repository.cxx
+++ b/unoxml/source/rdf/librdf_repository.cxx
@@ -510,11 +510,11 @@ librdf_node* librdf_GraphResult::getContext_Lock() const
{
if (!m_pStream.get() || librdf_stream_end(m_pStream.get()))
return nullptr;
- librdf_node *pCtxt( static_cast<librdf_node *>
+ librdf_node *pCtxt(
#if LIBRDF_VERSION >= 10012
- (librdf_stream_get_context2(m_pStream.get())) );
+ librdf_stream_get_context2(m_pStream.get()) );
#else
- (librdf_stream_get_context(m_pStream.get())) );
+ static_cast<librdf_node *>(librdf_stream_get_context(m_pStream.get())) );
#endif
if (pCtxt)
return pCtxt;
@@ -1689,11 +1689,11 @@ librdf_statement *rdfa_context_stream_map_handler(
{
OSL_ENSURE(i_pStream, "rdfa_context_stream_map_handler: stream null");
if (i_pStream) {
- librdf_node *pCtxt( static_cast<librdf_node *>
+ librdf_node *pCtxt(
#if LIBRDF_VERSION >= 10012
- (librdf_stream_get_context2(i_pStream)) );
+ librdf_stream_get_context2(i_pStream) );
#else
- (librdf_stream_get_context(i_pStream)) );
+ static_cast<librdf_node *>(librdf_stream_get_context(i_pStream)) );
#endif
OSL_ENSURE(pCtxt, "rdfa_context_stream_map_handler: context null");
if (pCtxt && isInternalContext(pCtxt)) {