Fix a compilation error in KPM.

This commit is contained in:
Andrius Štikonas 2016-08-08 22:33:17 +01:00
parent ca2e46a6e0
commit 9c524c40fe
2 changed files with 4 additions and 4 deletions

View File

@ -499,15 +499,15 @@ void OperationStack::clearDevices()
@param p pointer to the Partition to find a Device for
@return the Device or nullptr if none could be found
*/
const Device* OperationStack::findDeviceForPartition(const Partition* p)
Device* OperationStack::findDeviceForPartition(const Partition* p)
{
QReadLocker lockDevices(&lock());
foreach(const Device *d, previewDevices()) {
foreach(Device *d, previewDevices()) {
if (d->partitionTable() == nullptr)
continue;
for (auto const &part : d->partitionTable()->children()) {
foreach (auto const *part, d->partitionTable()->children()) {
if (part == p)
return d;

View File

@ -81,7 +81,7 @@ public:
return m_Operations; /**< @return the list of operations */
}
const Device* findDeviceForPartition(const Partition* p);
Device* findDeviceForPartition(const Partition* p);
QReadWriteLock& lock() {
return m_Lock;