Merge Interface::MessagePart and MessagePart
ClosedPublic

Authored by vkrause on Sep 30 2017, 10:37 AM.

Details

Summary

Interface::MessagePart is neither pure-virtual nor is it ever instantiated
now that legacy handling has been separated out, which removes its reason
to exist. This allows simplifying its usage, as we no longer need to
deal with the distinction.

Diff Detail

Repository
R94 PIM: Message Library
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
vkrause created this revision.Sep 30 2017, 10:37 AM
Restricted Application added a project: KDE PIM. · View Herald TranscriptSep 30 2017, 10:37 AM
Restricted Application added a subscriber: KDE PIM. · View Herald Transcript
knauss added inline comments.Sep 30 2017, 12:09 PM
messageviewer/src/messagepartthemes/default/plugins/messagepartrenderer.cpp
37–38

useless now, because it is always a MimeTreeParser::MessagePart:)

mimetreeparser/src/viewer/messagepart.h
77

doesn't it need to be virtual?

150

please keep them, these are for the new planned interface

knauss added inline comments.Sep 30 2017, 1:07 PM
mimetreeparser/src/viewer/messagepart.h
150

okay lets kill them for the moment

vkrause marked an inline comment as done.Sep 30 2017, 1:14 PM
vkrause added inline comments.
mimetreeparser/src/viewer/messagepart.h
77

virtual is inherited from QObject here. Technically this should be override, but override on dtors makes some compilers choke.

vkrause updated this revision to Diff 20152.Sep 30 2017, 1:15 PM

addressed review comments

knauss accepted this revision.Sep 30 2017, 1:18 PM
This revision is now accepted and ready to land.Sep 30 2017, 1:18 PM
This revision was automatically updated to reflect the committed changes.