summaryrefslogtreecommitdiff
path: root/unoxml/source/rdf/librdf_repository.cxx
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-02-16 15:47:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-02-16 20:17:39 +0100
commit9bd827270646be509060ddb92be4eae20b277b91 (patch)
treef68cb9b3296620ba15fc0efa57787176374abe80 /unoxml/source/rdf/librdf_repository.cxx
parent1607033e581ee1fc4aab5564cbf8fa89d7094ec7 (diff)
loplugin:referencecasting in UnoControls..unoxml
Change-Id: I42f216b6115be693a4e57d70f6cbbf11b62ec185 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110998 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unoxml/source/rdf/librdf_repository.cxx')
-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 13a10b4edb41..85b05260484a 100644
--- a/unoxml/source/rdf/librdf_repository.cxx
+++ b/unoxml/source/rdf/librdf_repository.cxx
@@ -1057,7 +1057,7 @@ librdf_Repository::importGraph(::sal_Int16 i_Format,
"librdf_model_context_add_statements failed", *this);
}
- return uno::Reference<rdf::XNamedGraph>(pGraph.get());
+ return pGraph;
}
void addChaffWhenEncryptedStorage(const uno::Reference< io::XOutputStream > &rStream, unsigned char* pBuffer, size_t length)
@@ -1273,7 +1273,7 @@ librdf_Repository::getGraph(const uno::Reference< rdf::XURI > & i_xGraphName)
::osl::MutexGuard g(m_aMutex);
const NamedGraphMap_t::iterator iter( m_NamedGraphs.find(contextU) );
if (iter != m_NamedGraphs.end()) {
- return uno::Reference<rdf::XNamedGraph>(iter->second.get());
+ return iter->second;
} else {
return nullptr;
}
@@ -1306,8 +1306,7 @@ librdf_Repository::createGraph(const uno::Reference< rdf::XURI > & i_xGraphName)
}
m_NamedGraphs.insert(std::make_pair(contextU,
new librdf_NamedGraph(this, i_xGraphName)));
- return uno::Reference<rdf::XNamedGraph>(
- m_NamedGraphs.find(contextU)->second.get());
+ return m_NamedGraphs.find(contextU)->second;
}
void SAL_CALL