D26069: Fix usage of deprecated QSet/QList methods

Alexey Min noreply at phabricator.kde.org
Tue Dec 17 16:10:28 GMT 2019


alexeymin created this revision.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
alexeymin requested review of this revision.

REVISION SUMMARY
  COmpiiling with Qt 5.14 produces the following warnings:
  
  .../libdiscover/resources/StandardBackendUpdater.cpp:70:43: warning:
  
    ‘QList<T> QSet<T>::toList() const [with T = AbstractResource*]’ is deprecated:
    Use values() instead. [-Wdeprecated-declarations]
  
  .../libdiscover/resources/StandardBackendUpdater.cpp:220:48: warning:
  
    ‘QSet<T> QList<T>::toSet() const [with T = AbstractResource*]’ is deprecated:
    Use QSet<T>(list.begin(), list.end()) instead. [-Wdeprecated-declarations]

TEST PLAN
  clean build with Qt 5.14 with no warnings

REPOSITORY
  R134 Discover Software Store

BRANCH
  alexeymin/fix-deprecation-warnings

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

AFFECTED FILES
  libdiscover/resources/StandardBackendUpdater.cpp

To: alexeymin
Cc: plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20191217/c453957d/attachment.html>


More information about the Plasma-devel mailing list