D29138: [Solid] Replace foreach (deprecated) with range/index for
Ahmad Samir
noreply at phabricator.kde.org
Mon Apr 27 10:23:54 BST 2020
ahmadsamir added inline comments.
INLINE COMMENTS
> bruns wrote in fakeopticaldisc.cpp:43
> Thats not a cast but a constructor, see QFlags documentation
From opticaldrive.h:
Q_DECLARE_FLAGS(MediumTypes, MediumType)
AFAIU, MediumTypes is the QFlags, MediumType is the enum. So Solid::OpticalDrive::MediumType(0) is the enum not the QFlags.
I'll land this and create a separate diff to add an enumerator UnknownMediumType to the MediumType enum, then use it in the for loop.
REPOSITORY
R245 Solid
BRANCH
l-foreach (branched from master)
REVISION DETAIL
https://phabricator.kde.org/D29138
To: ahmadsamir, #frameworks, dfaure, apol, meven
Cc: bruns, kde-frameworks-devel, LeGast00n, cblack, michaelh, ngraham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200427/83bbbf0c/attachment-0001.html>
More information about the Kde-frameworks-devel
mailing list