[partition] More const in getters

This commit is contained in:
Adriaan de Groot 2022-03-18 14:30:31 +01:00
parent 276aa191d5
commit 7d89643146
2 changed files with 4 additions and 4 deletions

View File

@ -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();
}

View File

@ -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 );