diff --git a/src/modules/partition/core/PartUtils.cpp b/src/modules/partition/core/PartUtils.cpp index 5cf8101f9..a02c18f97 100644 --- a/src/modules/partition/core/PartUtils.cpp +++ b/src/modules/partition/core/PartUtils.cpp @@ -43,7 +43,7 @@ namespace PartUtils { -static QString +QString convenienceName( const Partition* const candidate ) { if ( !candidate->mountPoint().isEmpty() ) diff --git a/src/modules/partition/core/PartUtils.h b/src/modules/partition/core/PartUtils.h index 0ad559a60..9b4efeec9 100644 --- a/src/modules/partition/core/PartUtils.h +++ b/src/modules/partition/core/PartUtils.h @@ -46,6 +46,15 @@ enum SizeUnit GiB }; +/** + * @brief Provides a nice human-readable name for @p candidate + * + * The most-specific human-readable name for the partition @p candidate + * is returned (e.g. device name, or partition path). In the worst + * case, a string representation of (void *)candidate is returned. + */ +QString convenienceName( const Partition* const candidate ); + /** * @brief canBeReplaced checks whether the given Partition satisfies the criteria * for replacing it with the new OS.