diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-11-18 00:51:55 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-11-18 00:51:55 +0100 |
commit | 0f24357d01bd8a278f03793db863d3f71ac37ef2 (patch) | |
tree | 331c908d936d70447d7e0e4d5e65be2be74ef510 /common/facadeinterface.h | |
parent | b68a67fdbe0eb73aaef648ceb686824c7fbc1552 (diff) | |
download | sink-0f24357d01bd8a278f03793db863d3f71ac37ef2.tar.gz sink-0f24357d01bd8a278f03793db863d3f71ac37ef2.zip |
Don't use a smart pointer for the result provider
We're not doing any lifetime management anyways.
Diffstat (limited to 'common/facadeinterface.h')
-rw-r--r-- | common/facadeinterface.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/facadeinterface.h b/common/facadeinterface.h index 571a1e8..7ec21bc 100644 --- a/common/facadeinterface.h +++ b/common/facadeinterface.h | |||
@@ -45,7 +45,7 @@ public: | |||
45 | virtual KAsync::Job<void> create(const DomainType &domainObject) = 0; | 45 | virtual KAsync::Job<void> create(const DomainType &domainObject) = 0; |
46 | virtual KAsync::Job<void> modify(const DomainType &domainObject) = 0; | 46 | virtual KAsync::Job<void> modify(const DomainType &domainObject) = 0; |
47 | virtual KAsync::Job<void> remove(const DomainType &domainObject) = 0; | 47 | virtual KAsync::Job<void> remove(const DomainType &domainObject) = 0; |
48 | virtual KAsync::Job<void> load(const Query &query, const QSharedPointer<Akonadi2::ResultProviderInterface<typename DomainType::Ptr> > &resultProvider) = 0; | 48 | virtual KAsync::Job<void> load(const Query &query, Akonadi2::ResultProviderInterface<typename DomainType::Ptr> &resultProvider) = 0; |
49 | }; | 49 | }; |
50 | 50 | ||
51 | template<class DomainType> | 51 | template<class DomainType> |
@@ -67,7 +67,7 @@ public: | |||
67 | return KAsync::error<void>(-1, "Failed to create a facade"); | 67 | return KAsync::error<void>(-1, "Failed to create a facade"); |
68 | } | 68 | } |
69 | 69 | ||
70 | KAsync::Job<void> load(const Query &query, const QSharedPointer<Akonadi2::ResultProviderInterface<typename DomainType::Ptr> > &resultProvider) | 70 | KAsync::Job<void> load(const Query &query, Akonadi2::ResultProviderInterface<typename DomainType::Ptr> &resultProvider) |
71 | { | 71 | { |
72 | return KAsync::error<void>(-1, "Failed to create a facade"); | 72 | return KAsync::error<void>(-1, "Failed to create a facade"); |
73 | } | 73 | } |