summaryrefslogtreecommitdiff
path: root/unoxml
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-03-24 22:53:27 +0100
committerMichael Stahl <mstahl@redhat.com>2016-03-24 23:07:31 +0100
commit1cd0a3153db52e454818b4996a288997d60ae053 (patch)
treeb5b1cea50b897c668987cad9f488b6c6e6db49e7 /unoxml
parent9cdfc240324679b1214ee175a3ed233f4cf4ecef (diff)
unordf: replace boost::shared_array with std::shared_ptr
It was using a custom deleter anyway. Change-Id: I700b7cf314b7f837a7143206ba42e412c5a1670d
Diffstat (limited to 'unoxml')
-rw-r--r--unoxml/source/rdf/librdf_repository.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/unoxml/source/rdf/librdf_repository.cxx b/unoxml/source/rdf/librdf_repository.cxx
index 3b3a1804a1ec..149b6f64644b 100644
--- a/unoxml/source/rdf/librdf_repository.cxx
+++ b/unoxml/source/rdf/librdf_repository.cxx
@@ -28,7 +28,6 @@
#include <functional>
#include <algorithm>
-#include <boost/shared_array.hpp>
#include <boost/optional.hpp>
#include <libxslt/security.h>
@@ -645,10 +644,10 @@ throw (uno::RuntimeException, container::NoSuchElementException,
if (!librdf_query_results_finished(m_pQueryResult.get())) {
sal_Int32 count(m_BindingNames.getLength());
OSL_ENSURE(count >= 0, "negative length?");
- boost::shared_array<librdf_node*> pNodes( new librdf_node*[count],
+ std::shared_ptr<librdf_node*> const pNodes(new librdf_node*[count],
NodeArrayDeleter(count));
for (int i = 0; i < count; ++i) {
- pNodes[i] = nullptr;
+ pNodes.get()[i] = nullptr;
}
if (librdf_query_results_get_bindings(m_pQueryResult.get(), nullptr,
pNodes.get()))
@@ -663,7 +662,7 @@ throw (uno::RuntimeException, container::NoSuchElementException,
}
uno::Sequence< uno::Reference< rdf::XNode > > ret(count);
for (int i = 0; i < count; ++i) {
- ret[i] = m_xRep->getTypeConverter().convertToXNode(pNodes[i]);
+ ret[i] = m_xRep->getTypeConverter().convertToXNode(pNodes.get()[i]);
}
// NB: this will invalidate current item.
librdf_query_results_next(m_pQueryResult.get());