[Differential] [Commented On] D3667: [MPRIS Dataengine] Let clients distinguish media players by process id more easily

broulik (Kai Uwe Broulik) noreply at phabricator.kde.org
Tue Dec 13 18:17:36 UTC 2016


broulik added a comment.


  LGTM overall
  
  "Prototype of redesigned taskbar" made me curious ;)

INLINE COMMENTS

> playercontainer.cpp:123
> +    int secondaryInstancePid = -1;
> +    int lastPoint = m_dbusAddress.lastIndexOf(".");
> +    QString end = m_dbusAddress.right(m_dbusAddress.length() - (lastPoint + 1));

QLatin1Char?

> playercontainer.cpp:124
> +    int lastPoint = m_dbusAddress.lastIndexOf(".");
> +    QString end = m_dbusAddress.right(m_dbusAddress.length() - (lastPoint + 1));
> +    const QString pre = "instance";

Can you use rightRef and the like, if possible?

> playercontainer.cpp:128
> +        end.remove(0, pre.length());
> +        bool convertSuccess;
> +        int i = end.toInt(&convertSuccess);

bool ok;

is sufficient in that context imho

REPOSITORY
  R120 Plasma Workspace

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

EMAIL PREFERENCES
  https://phabricator.kde.org/settings/panel/emailpreferences/

To: subdiff, #plasma
Cc: broulik, plasma-devel, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20161213/4df92569/attachment-0001.html>


More information about the Plasma-devel mailing list