D11721: Fix issues in models to pass ModelTest

Kai Uwe Broulik noreply at phabricator.kde.org
Mon Mar 26 16:47:10 UTC 2018


broulik added inline comments.

INLINE COMMENTS

> maps.h:116
> +        int modelIndex = 0;
> +        const auto keys = m_data.keys();
> +        for (quint32 key : keys) {

This creates a temporary list just to iterate it, better use iterators and then `key()` provided by it (I bet there's even a fancy `std` algorithm for what you're trying to do here)

> pulseaudio.h:41
>  
> +    ~AbstractModel();
>      QHash<int, QByteArray> roleNames() const Q_DECL_FINAL;

`override`?

REPOSITORY
  R115 Plasma Audio Volume Applet

REVISION DETAIL
  https://phabricator.kde.org/D11721

To: drosca, #plasma
Cc: broulik, plasma-devel, ragreen, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20180326/2165adb7/attachment.html>


More information about the Plasma-devel mailing list