Kaydet (Commit) 578e0f22 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

formatNeedsBaseURI always returns true

...ever since the code's introduction with
96710144 "INTEGRATION: CWS odfmetadata"

Change-Id: I18f5a18bf42b4b945b197f5294597fdfe2fbbeca
üst da00de7b
......@@ -860,12 +860,6 @@ uno::Reference< rdf::XBlankNode > SAL_CALL librdf_Repository::createBlankNode()
}
}
bool formatNeedsBaseURI(::sal_Int16 i_Format)
{
(void) i_Format; //FIXME any which don't?
return true;
}
//void SAL_CALL
uno::Reference<rdf::XNamedGraph> SAL_CALL
librdf_Repository::importGraph(::sal_Int16 i_Format,
......@@ -891,7 +885,7 @@ librdf_Repository::importGraph(::sal_Int16 i_Format,
throw lang::IllegalArgumentException(
"librdf_Repository::importGraph: URI is reserved", *this, 0);
}
if (formatNeedsBaseURI(i_Format) && !i_xBaseURI.is()) {
if (!i_xBaseURI.is()) { //FIXME: any i_Format that don't need a base URI?
throw lang::IllegalArgumentException(
"librdf_Repository::importGraph: base URI is null", *this, 3);
}
......@@ -1039,7 +1033,7 @@ librdf_Repository::exportGraph(::sal_Int16 i_Format,
"librdf_Repository::exportGraph: "
"graph name is null", *this, 2);
}
if (formatNeedsBaseURI(i_Format) && !i_xBaseURI.is()) {
if (!i_xBaseURI.is()) { //FIXME: any i_Format that don't need a base URI?
throw lang::IllegalArgumentException(
"librdf_Repository::exportGraph: "
"base URI is null", *this, 3);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment