[partition] More const in getters
This commit is contained in:
parent
276aa191d5
commit
7d89643146
@ -25,7 +25,7 @@ static const char FORMAT_PROPERTY[] = "_calamares_format";
|
||||
static const char FLAGS_PROPERTY[] = "_calamares_flags";
|
||||
|
||||
QString
|
||||
mountPoint( Partition* partition )
|
||||
mountPoint( const Partition* partition )
|
||||
{
|
||||
return partition->property( MOUNT_POINT_PROPERTY ).toString();
|
||||
}
|
||||
@ -37,7 +37,7 @@ setMountPoint( Partition* partition, const QString& value )
|
||||
}
|
||||
|
||||
bool
|
||||
format( Partition* partition )
|
||||
format( const Partition* partition )
|
||||
{
|
||||
return partition->property( FORMAT_PROPERTY ).toBool();
|
||||
}
|
||||
|
@ -33,10 +33,10 @@ class Partition;
|
||||
namespace PartitionInfo
|
||||
{
|
||||
|
||||
QString mountPoint( Partition* partition );
|
||||
QString mountPoint( const Partition* partition );
|
||||
void setMountPoint( Partition* partition, const QString& value );
|
||||
|
||||
bool format( Partition* partition );
|
||||
bool format( const Partition* partition );
|
||||
void setFormat( Partition* partition, bool value );
|
||||
|
||||
PartitionTable::Flags flags( const Partition* partition );
|
||||
|
Loading…
Reference in New Issue
Block a user