Fix redefinition of QAddConst
ClosedPublic

Authored by kfunk on Apr 5 2017, 8:29 AM.

Details

Summary
/home/kfunk/devel/src/kf5/akonadi/src/server/helper_p.h:27:30: error: redefinition of 'QAddConst'
template <typename T> struct QAddConst {
                             ^
/home/kfunk/devel/src/kf5/akonadi/src/server/utils.h:35:30: note: previous definition is here
template <typename T> struct QAddConst {
                             ^

Fixed build against Qt 5.6

Diff Detail

Repository
R165 Akonadi
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
kfunk created this revision.Apr 5 2017, 8:29 AM
Restricted Application added a project: KDE PIM. · View Herald TranscriptApr 5 2017, 8:29 AM
Restricted Application added a subscriber: KDE PIM. · View Herald Transcript
kfunk edited the summary of this revision. (Show Details)Apr 5 2017, 8:29 AM
kfunk added a reviewer: mlaurent.
kfunk updated this revision to Diff 13101.Apr 5 2017, 8:30 AM

Update commit message

kfunk retitled this revision from Fix redefenition of QAddConst to Fix redefinition of QAddConst.Apr 5 2017, 8:30 AM
mlaurent accepted this revision.Apr 5 2017, 8:55 AM

indeed it was a a bad idea to put it in this include.
Thanks.
(I already fixed some weeks ago same problem in libksieve).

This revision is now accepted and ready to land.Apr 5 2017, 8:55 AM
This revision was automatically updated to reflect the committed changes.