diff options
author | David Robillard <d@drobilla.net> | 2007-10-13 22:15:26 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-10-13 22:15:26 +0000 |
commit | 56439d90877b372608af83eb4f0559d7ab781da7 (patch) | |
tree | 26b324139efd8072b3974ca58d7162ee71fdca6b /raul/RDFQuery.hpp | |
parent | 4382c6f02502a707c9e78a7f633645092ddf7850 (diff) | |
download | raul-56439d90877b372608af83eb4f0559d7ab781da7.tar.gz raul-56439d90877b372608af83eb4f0559d7ab781da7.tar.bz2 raul-56439d90877b372608af83eb4f0559d7ab781da7.zip |
Dynamic polyphony fixes.
git-svn-id: http://svn.drobilla.net/lad/raul@883 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'raul/RDFQuery.hpp')
-rw-r--r-- | raul/RDFQuery.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
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<std::string, Node> Bindings; // FIXME: order? better to use int typedef std::list<Bindings> 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; |