D17342: team-port setting

Jan Grulich noreply at phabricator.kde.org
Thu Dec 6 09:34:14 GMT 2018


jgrulich added inline comments.

INLINE COMMENTS

> teamportsettingtest.cpp:103
> +        if (it.key() == QLatin1String(NM_SETTING_TEAM_PORT_LINK_WATCHERS)) {
> +            NMVariantMapList list = it_1.value().value<NMVariantMapList>();
> +            NMVariantMapList list1 = map1.value(it_1.key()).value<NMVariantMapList>();

Why don't you skip this and just use NMVariantMapList list = map.value(QLatin1String(NM_SETTING_TEAM_PORT_LINK_WATCHERS).value<NMVariantMapList>()? same for the second one. You don't need to go through the map to get "link-watchers" property.

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

To: pranavgade, jgrulich
Cc: kde-frameworks-devel, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20181206/2b327b65/attachment.html>


More information about the Kde-frameworks-devel mailing list