From 58ceeae7457f03b60fdc5a491b36abb2aa6d9e8a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 21 Oct 2007 05:27:32 +0000 Subject: Fix patch serialisation to a string. Fix patch uploading. Closes ticket 100. git-svn-id: http://svn.drobilla.net/lad/raul@892 a436a847-0d15-0410-975c-d299462d15a1 --- src/RDFWorld.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/RDFWorld.cpp b/src/RDFWorld.cpp index 9b1daf2..6ee1ec2 100644 --- a/src/RDFWorld.cpp +++ b/src/RDFWorld.cpp @@ -63,7 +63,8 @@ World::add_prefix(const string& prefix, const string& uri) string World::expand_uri(const string& uri) const { - assert(uri.find(":") != string::npos); + if (uri.find(":") == string::npos) + return uri; for (Namespaces::const_iterator i = _prefixes.begin(); i != _prefixes.end(); ++i) if (uri.substr(0, i->first.length()+1) == i->first + ":") -- cgit v1.2.1