summaryrefslogtreecommitdiff
path: root/unoxml
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-07-01 09:59:26 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-07-01 10:56:14 +0100
commit5ace3f3b4f2f916d8b2acab1b5cc0fe2a5a19dee (patch)
tree00cdcfc6ef33bc558bda62935d46377f033975d6 /unoxml
parent62cb50fd9b97358114dcc4d0c1afdcdd04341b0c (diff)
clang scan-build: various warnings
Change-Id: I4bdfb074b3cf6fcb49765322308dfa4b9ed67713
Diffstat (limited to 'unoxml')
-rw-r--r--unoxml/source/rdf/librdf_repository.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/unoxml/source/rdf/librdf_repository.cxx b/unoxml/source/rdf/librdf_repository.cxx
index cbdbae5116dc..b7333f6fb222 100644
--- a/unoxml/source/rdf/librdf_repository.cxx
+++ b/unoxml/source/rdf/librdf_repository.cxx
@@ -105,8 +105,7 @@ bool isInternalContext(librdf_node *i_pNode) throw ()
OSL_ENSURE(pURI, "isInternalContext: URI null");
if (pURI) {
unsigned char *pContextURI(librdf_uri_as_string(pURI));
- OSL_ENSURE(pContextURI,
- "isInternalContext: URI string null");
+ assert(pContextURI && "isInternalContext: URI string null");
// if prefix matches reserved uri, it is RDFa context
if (!strncmp(reinterpret_cast<char *>(pContextURI),
s_nsOOo, sizeof(s_nsOOo)-1)) {