From a56474374b7a5aeacf41419fc1a6c99007cd7483 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 3 May 2022 11:19:04 +0200 Subject: Just use Any ctor instead of makeAny in unoxml Change-Id: Iae66ed959d1b5734151ba42d272171254293501a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133749 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- 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 45648c342a8a..7b5aaa508f0d 100644 --- a/unoxml/source/rdf/librdf_repository.cxx +++ b/unoxml/source/rdf/librdf_repository.cxx @@ -514,7 +514,7 @@ librdf_GraphResult::nextElement() throw lang::WrappedTargetException( "librdf_GraphResult::nextElement: " "librdf_stream_get_object failed", *this, - uno::makeAny(e)); + uno::Any(e)); } // NB: pCtxt may be null here if this is result of a graph query if (pCtxt && isInternalContext(pCtxt)) { @@ -524,7 +524,7 @@ librdf_GraphResult::nextElement() m_xRep->getTypeConverter().convertToStatement(pStmt, pCtxt) ); // NB: this will invalidate current item. librdf_stream_next(m_pStream.get()); - return uno::makeAny(Stmt); + return uno::Any(Stmt); } @@ -568,7 +568,7 @@ librdf_GraphResult2::nextElement() m_nIndex = m_vStatements.size(); // avoid overflow throw container::NoSuchElementException(); } - return uno::makeAny(m_vStatements[n]); + return uno::Any(m_vStatements[n]); } /** result of tuple queries ("SELECT"). @@ -666,7 +666,7 @@ librdf_QuerySelectResult::nextElement() throw lang::WrappedTargetException( "librdf_QuerySelectResult::nextElement: " "librdf_query_results_get_bindings failed", *this, - uno::makeAny(e)); + uno::Any(e)); } uno::Sequence< uno::Reference< rdf::XNode > > ret(count); auto retRange = asNonConstRange(ret); @@ -675,7 +675,7 @@ librdf_QuerySelectResult::nextElement() } // NB: this will invalidate current item. librdf_query_results_next(m_pQueryResult.get()); - return uno::makeAny(ret); + return uno::Any(ret); } // css::rdf::XQuerySelectResult: @@ -2015,7 +2015,7 @@ librdf_Repository::getStatementsGraph_NoLock( throw lang::WrappedTargetException( "librdf_GraphResult::nextElement: " "librdf_stream_get_object failed", *this, - uno::makeAny(e)); + uno::Any(e)); } // NB: pCtxt may be null here if this is result of a graph query if (pCtxt && isInternalContext(pCtxt)) { -- cgit