unoxml/source/rdf/librdf_repository.cxx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)
New commits: commit d3aad81268298c05163136e2e953e1dfe0728d9e Author: Michael Stahl <mst...@redhat.com> Date: Thu Jan 9 12:32:59 2014 +0100 librdf_Repository: make older compilers happy Change-Id: Ide4df8f621f810b20be811db06d46edd5a9dc5f8 diff --git a/unoxml/source/rdf/librdf_repository.cxx b/unoxml/source/rdf/librdf_repository.cxx index 6d7df63..d56cfad 100644 --- a/unoxml/source/rdf/librdf_repository.cxx +++ b/unoxml/source/rdf/librdf_repository.cxx @@ -2119,7 +2119,9 @@ librdf_uri* librdf_TypeConverter::mkURI_Lock( librdf_world* i_pWorld, librdf_TypeConverter::extractResource_NoLock( const uno::Reference< rdf::XResource > & i_xResource) const { - if (!i_xResource.is()) return 0; + if (!i_xResource.is()) { + return ::boost::shared_ptr<Resource>(); + } uno::Reference< rdf::XBlankNode > xBlankNode(i_xResource, uno::UNO_QUERY); if (xBlankNode.is()) { const OString label( @@ -2172,7 +2174,9 @@ librdf_node* librdf_TypeConverter::mkResource_Lock( librdf_world* i_pWorld, librdf_TypeConverter::extractNode_NoLock( const uno::Reference< rdf::XNode > & i_xNode) const { - if (!i_xNode.is()) return 0; + if (!i_xNode.is()) { + return ::boost::shared_ptr<Node>(); + } uno::Reference< rdf::XResource > xResource(i_xNode, uno::UNO_QUERY); if (xResource.is()) { return extractResource_NoLock(xResource); @@ -2180,7 +2184,9 @@ librdf_TypeConverter::extractNode_NoLock( uno::Reference< rdf::XLiteral> xLiteral(i_xNode, uno::UNO_QUERY); OSL_ENSURE(xLiteral.is(), "mkNode: someone invented a new rdf.XNode and did not tell me"); - if (!xLiteral.is()) return 0; + if (!xLiteral.is()) { + return ::boost::shared_ptr<Node>(); + } const OString val( OUStringToOString(xLiteral->getValue(), RTL_TEXTENCODING_UTF8) ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits