From 167e055b91fa97063985253a8e5d73a2b712a26b Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 8 Jul 2016 16:41:18 +0200 Subject: loplugin:redundantcast: redundant static_casts in unoxml Change-Id: I75db798c0b7d6951fc278b91f4162fa7c7ffd79c --- unoxml/source/rdf/librdf_repository.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'unoxml') 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 *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_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 *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_stream_get_context(i_pStream)) ); #endif OSL_ENSURE(pCtxt, "rdfa_context_stream_map_handler: context null"); if (pCtxt && isInternalContext(pCtxt)) { -- cgit