mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 10:22:49 +00:00
kfreespace: minor optimizations
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
9d41410d02
commit
bf7b683a2e
2 changed files with 2 additions and 2 deletions
|
@ -204,7 +204,7 @@ void KCMFreeSpace::load()
|
|||
|
||||
KConfig kfreespaceconfig("kfreespacerc", KConfig::SimpleConfig);
|
||||
const QList<Solid::Device> storagedevices = Solid::Device::listFromType(Solid::DeviceInterface::StorageAccess);
|
||||
foreach (const Solid::Device soliddevice, storagedevices) {
|
||||
foreach (const Solid::Device &soliddevice, storagedevices) {
|
||||
const Solid::StorageAccess* solidaccess = soliddevice.as<Solid::StorageAccess>();
|
||||
if (!solidaccess) {
|
||||
continue;
|
||||
|
|
|
@ -72,7 +72,7 @@ void KFreeSpaceModule::slotInit()
|
|||
KConfig kfreespaceconfig("kfreespacerc", KConfig::SimpleConfig);
|
||||
bool watcherror = false;
|
||||
const QList<Solid::Device> storagedevices = Solid::Device::listFromType(Solid::DeviceInterface::StorageAccess);
|
||||
foreach (const Solid::Device soliddevice, storagedevices) {
|
||||
foreach (const Solid::Device &soliddevice, storagedevices) {
|
||||
const Solid::StorageAccess* solidaccess = soliddevice.as<Solid::StorageAccess>();
|
||||
if (!solidaccess) {
|
||||
continue;
|
||||
|
|
Loading…
Add table
Reference in a new issue