D29138: [Solid] Replace foreach (deprecated) with range/index for
Ahmad Samir
noreply at phabricator.kde.org
Fri Apr 24 18:31:27 BST 2020
ahmadsamir updated this revision to Diff 81121.
ahmadsamir marked an inline comment as done.
ahmadsamir added a comment.
Make the code much shorter with map.value(key, defaultvalue), since the ContentType enum has a NoContent member
REPOSITORY
R245 Solid
CHANGES SINCE LAST UPDATE
https://phabricator.kde.org/D29138?vs=81098&id=81121
BRANCH
l-foreach (branched from master)
REVISION DETAIL
https://phabricator.kde.org/D29138
AFFECTED FILES
src/imports/devices.cpp
src/solid/devices/backends/fakehw/fakecdrom.cpp
src/solid/devices/backends/fakehw/fakedevice.cpp
src/solid/devices/backends/fakehw/fakemanager.cpp
src/solid/devices/backends/fakehw/fakeopticaldisc.cpp
src/solid/devices/backends/fakehw/fakeprocessor.cpp
src/solid/devices/backends/fakehw/fakestorageaccess.cpp
src/solid/devices/backends/fstab/fstabdevice.cpp
src/solid/devices/backends/fstab/fstabmanager.cpp
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/20200424/6fc5c612/attachment.html>
More information about the Kde-frameworks-devel
mailing list