PCM::createImmutableDeviceCopy can be static.

This commit is contained in:
Teo Mrnjavac 2015-12-23 15:41:31 +01:00
parent 1a882758ca
commit ace0d30eb4
2 changed files with 4 additions and 2 deletions

View File

@ -69,6 +69,7 @@ PartitionCoreModule::DeviceInfo::~DeviceInfo()
{
}
void
PartitionCoreModule::DeviceInfo::forgetChanges()
{
@ -167,7 +168,7 @@ PartitionCoreModule::partitionModelForDevice( Device* device ) const
Device*
PartitionCoreModule::createImmutableDeviceCopy( Device* device ) const
PartitionCoreModule::createImmutableDeviceCopy( Device* device )
{
CoreBackend* backend = CoreBackendManager::self()->backend();

View File

@ -71,7 +71,8 @@ public:
// that contains the current state of a disk regardless of subsequent changes.
// This should probably be redone some other way.
// -- Teo 4/2015
Device* createImmutableDeviceCopy( Device* device ) const;
//FIXME: make this horrible method private. -- Teo 12/2015
static Device* createImmutableDeviceCopy( Device* device );
QAbstractItemModel* bootLoaderModel() const;