summaryrefslogtreecommitdiffstats
path: root/src/RDFNode.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-10-05 04:44:54 +0000
committerDavid Robillard <d@drobilla.net>2007-10-05 04:44:54 +0000
commit75f1691ccbb67ec5c718c28fbdedf8dbcc5912bf (patch)
treea00ffd4584f45df8a6ff9212fcc46021a9efe1ec /src/RDFNode.cpp
parent802fbfcc46f878f22d1b618baf04889a26d58da0 (diff)
downloadraul-75f1691ccbb67ec5c718c28fbdedf8dbcc5912bf.tar.gz
raul-75f1691ccbb67ec5c718c28fbdedf8dbcc5912bf.tar.bz2
raul-75f1691ccbb67ec5c718c28fbdedf8dbcc5912bf.zip
Fix connection serialisation.
Do hidden graphviz render to /dev/null instead of /home/dave/test.graphviz. Oops. :) git-svn-id: http://svn.drobilla.net/lad/raul@823 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/RDFNode.cpp')
-rw-r--r--src/RDFNode.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/RDFNode.cpp b/src/RDFNode.cpp
index d70389e..4bc1fbb 100644
--- a/src/RDFNode.cpp
+++ b/src/RDFNode.cpp
@@ -43,6 +43,7 @@ Node::Node(World& world, Type type, const std::string& s)
}
assert(this->type() == type);
+ assert(_world);
}
@@ -51,6 +52,7 @@ Node::Node(World& world)
{
Glib::Mutex::Lock lock(world.mutex(), Glib::TRY_LOCK);
_node = librdf_new_node(world.world());
+ assert(_world);
}
@@ -59,6 +61,7 @@ Node::Node(World& world, librdf_node* node)
{
Glib::Mutex::Lock lock(world.mutex(), Glib::TRY_LOCK);
_node = librdf_new_node_from_node(node);
+ assert(_world);
}
@@ -70,6 +73,8 @@ Node::Node(const Node& other)
Glib::Mutex::Lock lock(_world->mutex(), Glib::TRY_LOCK);
_node = (other._node ? librdf_new_node_from_node(other._node) : NULL);
}
+
+ assert(to_string() == other.to_string());
}