From 9ce338c195bdc123633c3018a91908df26848da6 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 19 Apr 2015 14:05:35 +0200 Subject: Fixed build. --- common/clientapi.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'common') diff --git a/common/clientapi.h b/common/clientapi.h index af8a15e..c6c43ee 100644 --- a/common/clientapi.h +++ b/common/clientapi.h @@ -528,9 +528,7 @@ public: static void create(const DomainType &domainObject, const QByteArray &resourceIdentifier) { //Potentially move to separate thread as well auto facade = FacadeFactory::instance().getFacade(resourceIdentifier); - auto job = facade->create(domainObject); - auto future = job.exec(); - future.waitForFinished(); + facade->create(domainObject).exec().waitForFinished(); //TODO return job? } @@ -543,7 +541,8 @@ public: static void modify(const DomainType &domainObject, const QByteArray &resourceIdentifier) { //Potentially move to separate thread as well auto facade = FacadeFactory::instance().getFacade(resourceIdentifier); - facade.modify(domainObject); + facade->modify(domainObject).exec().waitForFinished(); + //TODO return job? } /** @@ -553,7 +552,8 @@ public: static void remove(const DomainType &domainObject, const QByteArray &resourceIdentifier) { //Potentially move to separate thread as well auto facade = FacadeFactory::instance().getFacade(resourceIdentifier); - facade.remove(domainObject); + facade->remove(domainObject).exec().waitForFinished(); + //TODO return job? } static void shutdown(const QByteArray &resourceIdentifier); -- cgit v1.2.3