From 7de151038d0206c8de73fab7788d6bc80bda895f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 17 Dec 2010 17:54:59 +0000 Subject: Use an actual wrapper for query results (instead of building a Bindings and returning that). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2742 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/LoadRemotePatchWindow.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/gui') diff --git a/src/gui/LoadRemotePatchWindow.cpp b/src/gui/LoadRemotePatchWindow.cpp index c4bcd66f..6fff2ff9 100644 --- a/src/gui/LoadRemotePatchWindow.cpp +++ b/src/gui/LoadRemotePatchWindow.cpp @@ -76,12 +76,11 @@ LoadRemotePatchWindow::present(SharedPtr patch, GraphObject::Propert " doap:name ?name ." "}")); - Redland::Query::Results results = query.run(*App::instance().world()->rdf_world(), model); - - for (Redland::Query::Results::iterator i = results.begin(); i != results.end(); ++i) { + SharedPtr results(query.run(*App::instance().world()->rdf_world(), model)); + for (; !results->finished(); results->next()) { Gtk::TreeModel::iterator iter = _liststore->append(); - (*iter)[_columns._col_name] = (*i)["name"].to_string(); - (*iter)[_columns._col_uri] = (*i)["uri"].to_string(); + (*iter)[_columns._col_name] = results->get("name").to_string(); + (*iter)[_columns._col_uri] = results->get("uri").to_string(); } _treeview->columns_autosize(); -- cgit v1.2.1