diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-07-14 01:05:20 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-07-14 01:05:20 +0200 |
commit | 8146bd3276c4b26018814446803dac7aa944797c (patch) | |
tree | 7ce2693d3bd08b97c45860f91fd07e262a49747a /common/domainadaptor.h | |
parent | 5d31ad5cc706ed1ad69df13750e7003481719aae (diff) | |
download | sink-8146bd3276c4b26018814446803dac7aa944797c.tar.gz sink-8146bd3276c4b26018814446803dac7aa944797c.zip |
Removed unnecessary template parameter
Diffstat (limited to 'common/domainadaptor.h')
-rw-r--r-- | common/domainadaptor.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/domainadaptor.h b/common/domainadaptor.h index ca89fba..48a0507 100644 --- a/common/domainadaptor.h +++ b/common/domainadaptor.h | |||
@@ -122,13 +122,13 @@ public: | |||
122 | QSharedPointer<ReadPropertyMapper<ResourceBuffer> > mResourceMapper; | 122 | QSharedPointer<ReadPropertyMapper<ResourceBuffer> > mResourceMapper; |
123 | }; | 123 | }; |
124 | 124 | ||
125 | template<typename DomainType> | ||
126 | class DomainTypeAdaptorFactoryInterface | 125 | class DomainTypeAdaptorFactoryInterface |
127 | { | 126 | { |
128 | public: | 127 | public: |
128 | typedef QSharedPointer<DomainTypeAdaptorFactoryInterface> Ptr; | ||
129 | virtual ~DomainTypeAdaptorFactoryInterface() {}; | 129 | virtual ~DomainTypeAdaptorFactoryInterface() {}; |
130 | virtual QSharedPointer<Akonadi2::ApplicationDomain::BufferAdaptor> createAdaptor(const Akonadi2::Entity &entity) = 0; | 130 | virtual QSharedPointer<Akonadi2::ApplicationDomain::BufferAdaptor> createAdaptor(const Akonadi2::Entity &entity) = 0; |
131 | virtual void createBuffer(const DomainType &domainType, flatbuffers::FlatBufferBuilder &fbb) = 0; | 131 | virtual void createBuffer(const Akonadi2::ApplicationDomain::ApplicationDomainType &domainType, flatbuffers::FlatBufferBuilder &fbb) = 0; |
132 | }; | 132 | }; |
133 | 133 | ||
134 | /** | 134 | /** |
@@ -137,7 +137,7 @@ public: | |||
137 | * This is required by the facade the read the value, and by the pipeline preprocessors to access the domain values in a generic way. | 137 | * This is required by the facade the read the value, and by the pipeline preprocessors to access the domain values in a generic way. |
138 | */ | 138 | */ |
139 | template<typename DomainType, typename ResourceBuffer, typename ResourceBuilder> | 139 | template<typename DomainType, typename ResourceBuffer, typename ResourceBuilder> |
140 | class DomainTypeAdaptorFactory : public DomainTypeAdaptorFactoryInterface<DomainType> | 140 | class DomainTypeAdaptorFactory : public DomainTypeAdaptorFactoryInterface |
141 | { | 141 | { |
142 | typedef typename Akonadi2::ApplicationDomain::TypeImplementation<DomainType>::Buffer LocalBuffer; | 142 | typedef typename Akonadi2::ApplicationDomain::TypeImplementation<DomainType>::Buffer LocalBuffer; |
143 | typedef typename Akonadi2::ApplicationDomain::TypeImplementation<DomainType>::BufferBuilder LocalBuilder; | 143 | typedef typename Akonadi2::ApplicationDomain::TypeImplementation<DomainType>::BufferBuilder LocalBuilder; |
@@ -169,7 +169,7 @@ public: | |||
169 | return adaptor; | 169 | return adaptor; |
170 | } | 170 | } |
171 | 171 | ||
172 | virtual void createBuffer(const DomainType &domainObject, flatbuffers::FlatBufferBuilder &fbb) Q_DECL_OVERRIDE | 172 | virtual void createBuffer(const Akonadi2::ApplicationDomain::ApplicationDomainType &domainObject, flatbuffers::FlatBufferBuilder &fbb) Q_DECL_OVERRIDE |
173 | { | 173 | { |
174 | flatbuffers::FlatBufferBuilder localFbb; | 174 | flatbuffers::FlatBufferBuilder localFbb; |
175 | if (mLocalWriteMapper) { | 175 | if (mLocalWriteMapper) { |