diff options
author | David Robillard <d@drobilla.net> | 2010-12-17 17:54:59 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-12-17 17:54:59 +0000 |
commit | 7de151038d0206c8de73fab7788d6bc80bda895f (patch) | |
tree | f7b6ae5f407b55d96d366c4eaa4233037daae2ed /src/gui | |
parent | c572d72f30afc57d156c566ef6f8ce9fb9911eaf (diff) | |
download | ingen-7de151038d0206c8de73fab7788d6bc80bda895f.tar.gz ingen-7de151038d0206c8de73fab7788d6bc80bda895f.tar.bz2 ingen-7de151038d0206c8de73fab7788d6bc80bda895f.zip |
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
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/LoadRemotePatchWindow.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
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<PatchModel> 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<Redland::QueryResults> 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(); |