mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 17:35:37 -04:00
[partition] Refactor PartitionEntry
- add a constructor that parses size and min - minor reduction in code duplication
This commit is contained in:
parent
5863300f67
commit
a6edb3ed34
2 changed files with 14 additions and 12 deletions
|
@ -53,6 +53,11 @@ public:
|
|||
SizeUnit partSizeUnit = Percent;
|
||||
double partMinSize = 0.0L;
|
||||
SizeUnit partMinSizeUnit = Percent;
|
||||
|
||||
/// @brief All-zeroes PartitionEntry
|
||||
PartitionEntry() {};
|
||||
/// @brief Parse @p size and @p min to their respective member variables
|
||||
PartitionEntry( const QString& size, const QString& min );
|
||||
};
|
||||
|
||||
PartitionLayout();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue