From 56439d90877b372608af83eb4f0559d7ab781da7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 13 Oct 2007 22:15:26 +0000 Subject: Dynamic polyphony fixes. git-svn-id: http://svn.drobilla.net/lad/raul@883 a436a847-0d15-0410-975c-d299462d15a1 --- raul/RDFQuery.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'raul/RDFQuery.hpp') diff --git a/raul/RDFQuery.hpp b/raul/RDFQuery.hpp index 76ae128..7d82390 100644 --- a/raul/RDFQuery.hpp +++ b/raul/RDFQuery.hpp @@ -40,8 +40,10 @@ public: typedef std::map Bindings; // FIXME: order? better to use int typedef std::list Results; - Query(const World& world, Glib::ustring query) + Query(World& world, Glib::ustring query) { + Glib::Mutex::Lock lock(world.mutex()); + // Prepend prefix header for (Namespaces::const_iterator i = world.prefixes().begin(); i != world.prefixes().end(); ++i) { @@ -54,7 +56,7 @@ public: Results run(World& world, Model& model, const Glib::ustring base_uri="") const; - Glib::ustring string() const { return _query; }; + const Glib::ustring& string() const { return _query; }; private: Glib::ustring _query; -- cgit v1.2.1