[Differential] [Commented On] D3088: [KDecoration] Restore application menu button
Martin Gräßlin
noreply at phabricator.kde.org
Tue Jan 10 16:10:23 UTC 2017
graesslin added inline comments.
INLINE COMMENTS
> davidedmundson wrote in decoration.cpp:201
> I don't get this? We've replaced one ABI crash with throwing a runtime exception on calling a pure virtual, which isn't going to be much better.
>
> We either want:
>
> if d->metaObject() == ApplicationMenuEnabledDecoratedClientPrivate::staticMetaObject()
>
> Or to make the methods in the other class non pure virtuals.
I agree, static_cast doesn't make sense. I would do a dynamic_cast/qobject_cast and check for null.
REPOSITORY
R129 Window Decoration Library
REVISION DETAIL
https://phabricator.kde.org/D3088
EMAIL PREFERENCES
https://phabricator.kde.org/settings/panel/emailpreferences/
To: broulik, #plasma
Cc: davidedmundson, sitter, graesslin, plasma-devel, lesliezhai, ali-mohamed, jensreuterberg, abetts, andreaska, sebas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20170110/b40ade95/attachment.html>
More information about the Plasma-devel
mailing list