summaryrefslogtreecommitdiff
path: root/client.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'client.cxx')
-rw-r--r--client.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/client.cxx b/client.cxx
index a37ba01..5b1858e 100644
--- a/client.cxx
+++ b/client.cxx
@@ -32,9 +32,7 @@ namespace QICClient {
void Client::results(QString const& prodGroup)
{
- icclient_results(prodGroup.toLatin1().constData(), handleResults, [](icclient_catalog* catalog) {
- icclient_free_catalog(catalog);
- });
+ icclient_results(prodGroup.toLatin1().constData(), handleResults, nullptr);
}
/*
void Client::results(QString const& prodGroup, void (*handler)(icclient_fetch_t*))
@@ -44,9 +42,7 @@ namespace QICClient {
*/
void Client::allProducts()
{
- icclient_allproducts(handleResults, [](icclient_catalog* catalog) {
- icclient_free_catalog(catalog);
- });
+ icclient_allproducts(handleResults, nullptr);
}
void Client::allproducts(void (*handler)(icclient_fetch_t* fetch))