diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-05-03 11:19:04 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-05-03 16:18:13 +0200 |
commit | a56474374b7a5aeacf41419fc1a6c99007cd7483 (patch) | |
tree | 76f870cf60b1c9ad07de4ce97b7ac71e5525ca31 | |
parent | 4ad4c963747729c0b980ef49228f468177dc2cca (diff) |
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 <sbergman@redhat.com>
-rw-r--r-- | unoxml/source/rdf/librdf_repository.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
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)) { |